JSPM

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

Part-of-speech tags from the Brill-tagger

Package Exports

  • brill

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 (brill) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

brill

Build Coverage Downloads Size

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

Installation

npm:

npm install brill

Usage

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 / joined tags (Object.<string>).

Capitalisation

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.

License

MIT © Titus Wormer