@ifct2017/groups
Version:
Categorization of food by their common names.
60 lines (48 loc) ⢠2.1 kB
Markdown
[] of food by their common names.<br>
š¦ [Node.js](https://www.npmjs.com/package/@ifct2017/groups),
š [Files](https://unpkg.com/@ifct2017/groups/).
> This is part of package [ifct2017].<br>
> Online database: [ifct2017.github.io].
<br>
```javascript
const groups = require('@ifct2017/groups');
// groups(query)
// ā matches [{code, group, entries, tags}]
groups('cereals');
groups('Millet');
// [ { code: 'A',
// group: 'Cereals and Millets',
// entries: 24,
// tags: 'vegetarian eggetarian fishetarian veg' } ]
groups('what is vegetable?');
groups('vegetable group code?');
// [ { code: 'D',
// group: 'Other Vegetables',
// entries: 78,
// tags: 'vegetarian eggetarian fishetarian veg' },
// { code: 'C',
// group: 'Green Leafy Vegetables',
// entries: 34,
// tags: 'vegetarian eggetarian fishetarian veg' } ]
```
```javascript
// Additional methods:
groups.load() // ā corpus
groups.sql([table], [options]) // ā sql statements
groups.csv() // ā path of csv file
```
<br>
<br>
[](http://ifct2017.com/)<br>
[](https://ifct2017.github.io)
[](https://zenodo.org/badge/latestdoi/132839826)
> 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].
[]: https://www.npmjs.com/package/ifct2017
[]: http://ifct2017.com/
[]: https://github.com/ifct2017/groups/blob/master/index.csv
[]: https://ifct2017.github.io
[]: https://www.nin.res.in/
[]: https://docs.google.com/spreadsheets/d/1PMR0TZLLYsS70lcC0Bap4oNrI1azgmuGx9ekfHJB_0Q/edit?usp=sharing
[]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSsXdKiSvWypa6aJlCfl_eKIzAOfESO_wHITJtPik3K1goIy81hciSjmTCqFjmFv1cqrLdnYhg1Q3O1/pubhtml