Skip to content

nvif1989/languages

Repository files navigation

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.