ElectronicBabylonianLiterature / proper-name-importer

A script to import proper names to the Dictionary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

proper-name-importer

Imports proper names to Dictionary.

oclif Maintainability

Usage

$ npm install -g @electronicbabylonianliterature/proper-name-importer
$ import-names (-v|--version|version)
@electronicbabylonianliterature/proper-name-importer/2.0.0 win32-x64 node-v14.2.0
$ import-names --help
USAGE
  $ import-names FILE

ARGUMENTS
  FILE  Path to the JSON file

OPTIONS
  -d, --db=db    [default: ebl] database name
  -h, --help     show CLI help
  -u, --uri=uri  [default: mongodb://localhost:27017] MongoDB URI
  -v, --version  show CLI version
  --ssl          Use SSL connection.

The file be a valid JSON containing an array of objets with following string properties lemma, guideWord, pos, origin. A new document is added to the words collection in the database. If the data contains duplicate lemmata, a new homonym is created for each. If the lemma already exists in the database no word is created and the propername and message is printed to standard output.

About

A script to import proper names to the Dictionary

License:MIT License


Languages

Language:TypeScript 97.1%Language:JavaScript 2.6%Language:Batchfile 0.3%