README.adoc in human_languages-0.5.0 vs README.adoc in human_languages-0.6.0
- old
+ new
@@ -1,11 +1,11 @@
= Languages
Benno Bielmeier
:source-language: ruby
image:https://api.reuse.software/badge/github.com/bbenno/languages[link="https://api.reuse.software/info/github.com/bbenno/languages", alt="REUSE status"]
-image:https://img.shields.io/github/v/tag/bbenno/languages[GitHub tag (latest SemVer)]
+image:https://badge.fury.io/rb/human_languages.svg["Gem Version", link="https://badge.fury.io/rb/human_languages"]
image:https://img.shields.io/maintenance/yes/2022[Maintenance]
image:https://github.com/bbenno/languages/actions/workflows/main.yml/badge.svg[link="https://github.com/bbenno/languages/actions/workflows/main.yml"]
Simple, dependency-less gem providing all known human languagesfootnote:[This includes all individual languages already accounted for in ISO 639-2 as well as extinct, ancient, constructed, and historical languages.] defined in ISO 639-3
@@ -89,20 +89,21 @@
Languages.all.select { |l| %w[ancient historical].include?(l.type) }
=== Data Objects
The `Language` objects have a simple read-only interface:
+
[source]
----
language = Language[:fr]
language.name # => French
language.alpha2 # => :fr (alias for #iso639_1)
language.alpha3 # => :fra (alias for #iso639_3)
language.alpha3_bibliographic # => :fre (alias for #iso_639_2b)
language.alpha3_terminology # => :fra (alias for #iso_639_2t)
-language.type # => "living"
-language.scope # => "individual"
+language.type # => :living
+language.scope # => :individual
language.extinct? # => false
language.living? # => true
language.individual_language? # => true
----