@ifct2017/languages
Version:
Full form of language abbreviations.
55 lines (41 loc) ⢠1.94 kB
Markdown
Full form of [language abbreviations].<br>
š¦ [Node.js](https://www.npmjs.com/package/@ifct2017/languages),
š [Files](https://unpkg.com/@ifct2017/languages/).
> This is part of package [ifct2017].<br>
> Online database: [ifct2017.github.io].
<br>
```javascript
const languages = require('@ifct2017/languages');
// languages(query)
// ā {abbr, lang} if found, null otherwise.
languages('mal.');
languages('Mal');
// { abbr: 'Mal.', lang: 'Malayalam' }
languages('what is s.?');
languages('S. stands for?');
// { abbr: 'S.', lang: 'Sanskrit' }
// Note:
// Full stops must immediately follow character, if present.
// For single character abbreviations, full stop is mandatory.
```
```javascript
// Additional methods:
languages.load() // ā corpus
languages.sql([table], [options]) // ā sql statements
languages.csv() // ā path of csv file
```
<br>
<br>
[](http://ifct2017.com/)<br>
[](https://ifct2017.github.io)
[](https://zenodo.org/badge/latestdoi/132982545)
> Data was obtained from the book [Indian Food Composition Tables 2017].<br>
> Food composition values were measured by [National Institute of Nutrition, Hyderabad].<br>
> Take a peek at the raw data here: [Document], [Webpage].
[ifct2017]: https://www.npmjs.com/package/ifct2017
[Indian Food Composition Tables 2017]: http://ifct2017.com/
[language abbreviations]: https://github.com/ifct2017/languages/blob/master/index.csv
[ifct2017.github.io]: https://ifct2017.github.io
[National Institute of Nutrition, Hyderabad]: http://www.ninindia.org
[Document]: https://docs.google.com/spreadsheets/d/1NrdVtCYtmxooVtdGj9UQOPR7l4HIJc9qeI7BNoytGhI/edit?usp=sharing
[Webpage]: https://docs.google.com/spreadsheets/d/e/2PACX-1vTrDSLb2ABbFM8v7QVXqVR0QV7ha58ZJS3Kw6RmtgcwaN6GjNv_hfEZ3K-NqACpT9sIyv7oFysY6z_p/pubhtml