JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21
  • Score
    100M100P100Q60607F
  • License MIT

Language abbreviations in Indian Food Composition Tables 2017.

Package Exports

  • @ifct2017/languages

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ifct2017/languages) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@ifct2017/languages

ifct2017

Language abbreviations in Indian Food Composition Tables 2017.
Check supported language abbreviations.

const languages = require('@ifct2017/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('mal.');
languages('Mal');
// { abbr: 'Mal.', lang: 'Malayalam' }

languages('what is s.?');
languages('S. stands for?');
/* (full stops must immediately follow character, if present) */
/* (for single character abbreviations, full stop is mandatory) */
// { abbr: 'S.', lang: 'Sanskrit' }