JSPM

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

Part-of-speech tags from the Brill-tagger

Package Exports

  • brill
  • brill/index.js

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

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

Contents

What is this?

This package exposes a lot of words to POS tags.

When should I use this?

Use this when you want to do fun things with natural language.

Install

This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:

npm install brill

In Deno with esm.sh:

import {brill} from 'https://esm.sh/brill@3'

In browsers with esm.sh:

<script type="module">
  import {brill} from 'https://esm.sh/brill@3?bundle'
</script>

Use

import {brill} from '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

This package exports the identifiers brill and descriptions. There is no default export.

brill

Map of words to a list of tags (Record<string, Array<string>>).

descriptions

Map of tags to human descriptions (Record<string, string>). See lib/descriptions.js.

Data

Capitalization

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

import {brill} from '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 word first in its original form first and if it does not exist in its lowercase form.

Types

This package is fully typed with TypeScript. It exports no additional types.

Compatibility

This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers.

Contribute

Yes please! See How to Contribute to Open Source.

Security

This package is safe.

License

MIT © Titus Wormer