ord

ordbok

Node.js module/CLI app for querying ordbok.uib.no

Showing:

Popularity

Downloads/wk

13

GitHub Stars

0

Maintenance

Last Commit

1mo ago

Contributors

5

Package

Dependencies

2

Size (min+gzip)

241.0KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Build Status

ordbok

Node.js module/CLI app for querying ordbok.uib.no

Installation

$ npm install ordbok

You can also install it globally to use the CLI version.

$ npm install ordbok -g

Test

Make sure you have installed Mocha globally or go to the ordbok folder and do an nmp install.

$ npm test

Usage

Pass an object with the required property and receive the result.

word String you want to lookup.

const ordbok = require('ordbok')
const options = {
  word: 'syltelabb'
}

ordbok(options, (error, data) => {
  if (error) throw error
  console.log(data)
})

CLI

To use it as a CLI app install it globally.

To display help

$ ordbok --help

To display version

$ ordbok --version

Usage

$ ordbok <query>

Output

{"bokmal":
  [
    {
      "word": String ,
      "partOfSpeech": String ,
      "paradigm": [
        String
      ],
      "wordsOrigin": String ,
      "interpretation": [
        {
          "definition": String
        }
      ]
    }
  ]
  , "nynorsk":
  [
    {
      "word": String ,
      "partOfSpeech": String ,
      "paradigm": [
        String
      ],
      "wordsOrigin": String ,
      "interpretation": [
        {
          "definition": String
        }
      ]
    }
  ]
}

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100