Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

ElectronicBabylonianLiterature/proper-name-importer

Repository files navigation

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.