@nvif1989/languages

    1.0.1 • Public • Published

    Full form of language abbreviations.

    This is part of package nvif1989.
    Source: Nutritive Value of Indian Foods 1989.

    const languages = require('@nvif1989/languages');
    // languages.corpus: Map {abbr => {abbr, lang}}
    // languages.load(): true (corpus loaded)
    // languages.sql([table], [options]): sql commands
    // languages.csv(): path of csv file
    // languages(<query>)
    // -> {abbr, lang} if supported, null otherwise.
     
     
    languages.load();
    /* load corpus first */
     
    languages('b.');
    languages('B.');
    // { abbr: 'B.', lang: 'Bengali' }
     
    languages('what is tel.?');
    languages('Tel. stands for?');
    /* (full stops must immediately follow character, if present) */
    /* (for single character abbreviations, full stop is mandatory) */
    // { abbr: 'Tel.', lang: 'Telgu' }

    nvif1989

    You can ask about composition of 592 key foods in India here: nvif1989.github.io.
    Food composition values were measured by National Institute of Nutrition, Hyderabad.
    Take a peek at the raw data here: Document, Webpage.

    Install

    npm i @nvif1989/languages

    DownloadsWeekly Downloads

    8

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    5.96 kB

    Total Files

    6

    Last publish

    Collaborators

    • wolfram77