Giter Club home page Giter Club logo

languages's People

Contributors

bbenno avatar dependabot[bot] avatar sandbergja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

languages's Issues

Feature request: ISO 639-2/639-5 collective codes

It would be helpful for my use case to be able to access the collective codes included in ISO 639-2 and ISO 639-5, without needing to use separate gems for ISO 639-2/5 and ISO 639-3.

For example, the following returns nil:

require 'languages'
Languages[:nah]
=> nil

Ideally, I would be able to do the following:

Languages[:nah].name
=> "Nahuatl languages"
Languages[:nah].alpha2
=> nil
Languages[:nah].alpha3_bibliographic
=> "nah"
Languages[:nah].type
=> :collective

I understand that these collective codes are not included in ISO 639-3, but it would be helpful to have them all in a single gem.

The collective codes can be found in a file here: http://id.loc.gov/vocabulary/iso639-5.tsv

@bbenno if this fits with the direction of the project, I'd be happy to create a PR for this feature.

Feature request: include macrolanguages

User story

As a developer, given an ISO-639-3 language code, I would like to find the name of its macrolanguage.

Specific example

The macrolanguages table lists zho (Chinese) as a macrolanguage of wuu (Wu Chinese).

It would be very convenient if, using this gem, I could do something like the following:

Languages[:wuu]&.macrolanguage
=> #<Languages::Language:0x000000011a48c4c8 @iso639_3=:zho, @iso639_2b=:chi, @iso639_2t=:zho, @iso639_1=:zh, @scope=:macrolanguage, @type=:living, @name="Chinese">

Source data

The macrolanguages table can be found at https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3-macrolanguages.tab. The first column is the macrolanguage, the second column is the individual language.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.