@nvif1989/languages
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • 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.

Dependents (1)

Package Sidebar

Install

npm i @nvif1989/languages

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

6.17 kB

Total Files

7

Last publish

Collaborators

  • wolfram77