Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

brill

2.0.1 • Public • Published

brill

Build Coverage Downloads Size

The part of speech tags from the Brill-tagger: 89,539 unique words or symbols with one or more tags.

Install

npm:

npm install brill

Use

var brill = require('brill')
 
console.log(Object.keys(brill).length) // 89539
 
console.log(brill.Eric) //=> [ 'NNP' ]
// (Proper Noun, singular)
 
console.log(brill['most-contentious']) //=> [ 'RB|VBG' ]
// (Adverb; Verb, present participle/gerund)
 
console.log(brill.AA) //=> [ 'JJ', 'NN', 'NNP' ]
// (Adjective; Noun, singular or mass; Proper Noun, singular)

API

brill

brill exposes an object where the keys are words and the values are a list of tags or joined tags (Object.<string>).

Capitalization

Some words are included as all-caps, first-capital, lowercase, or other:

var brill = require('brill')
 
console.log(brill.THAT) // [ 'TO', 'DT' ]
console.log(brill.That) // [ 'DT', 'NNP', 'PDT', 'IN', 'RB', 'EX', 'WDT' ]
console.log(brill.that) // [ 'IN', 'DT', 'NN', 'RB', 'RP', 'UH', 'WP', 'VBP', 'WDT' ]

It’s recommended to check a given word first in its original form, and second, if no tags are found, in its lowercase form.

Related

License

MIT © Titus Wormer

Install

npm i brill

DownloadsWeekly Downloads

3

Version

2.0.1

License

MIT

Unpacked Size

1.89 MB

Total Files

8

Last publish

Collaborators

  • avatar
  • avatar