# en-lexicon

> Extensible english lexicon with Emoji support

Latest version **1.0.11** (published 2017-04-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install en-lexicon
pnpm add en-lexicon
yarn add en-lexicon
bun add en-lexicon
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.11 |
| Published | 2017-04-08 |
| First published | 2017-01-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Alex Corvi |
| Maintainers | alexcorvi |
| Keywords | lexicon, english, sentiment, pos, tags |

## Links

- npm: https://www.npmjs.com/package/en-lexicon
- Repository: https://github.com/finnlp/en-lexicon
- Homepage: https://github.com/finnlp/en-lexicon#readme
- Issues: https://github.com/finnlp/en-lexicon/issues
- npm.io page: https://npm.io/package/en-lexicon

## Dependencies (1)

- [en-inflectors](https://npm.io/package/en-inflectors.md) ^1.0.7

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [stockfish](https://npm.io/package/stockfish.md) — 27.0K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads

## Recent versions

- 1.0.11 (latest) — 2017-04-08
- 1.0.10 — 2017-03-08
- 1.0.9 — 2017-02-28
- 1.0.8 — 2017-02-04
- 1.0.7 — 2017-02-04
- 1.0.6 — 2017-01-26
- 1.0.5 — 2017-01-26
- 1.0.4 — 2017-01-25
- 1.0.3 — 2017-01-24
- 1.0.2 — 2017-01-10
- 1.0.1 — 2017-01-05
- 1.0.0 — 2017-01-05

## README

# English Lexicon
Extensible English language lexicon for POS tagging with Emojis and around 110K words

## Installation

```
npm install en-lexicon --save
```


## Usage

```javascript

const lexicon = require("en-lexicon");

console.log(lexicon.lexicon.faraway);
// "JJ"

// multiple POS tags are separated by "|"
console.log(lexicon.lexicon.acquired);
// "VBN|JJ|VBD"

```


## Extending

One of the main reason that I had to write my own lexicon module is that I needed it to be extensible. 

To extend the lexion with medical terms for example:

```javascript
const lexicon = require("en-lexicon");
lexicon.extend({
	lactate:"VB",
	serum:"NN"
});

// Now that you've extended the lexicon with your own terms
// you won't only get the terms you entered
// The lexicon will (try) to be smart and
// apply some inflections on those terms

// the term you entered
console.log(lexicon.lexicon.lactate);
// "VB"
console.log(lexicon.lexicon.lactated);
// "VBD|VBN"
console.log(lexicon.lexicon.lactating);
// "VBG"

```


## Credits

I've used Eric Brill's lexicon as starting point for this project, manually corrected some cases, and expanded it using various corpora, [this one](https://github.com/dariusk/corpora) and [this one](https://github.com/nibblesoft/dictionary-thesaurus) for example.

## License

License: The MIT License (MIT) - Copyright (c) 2017 Alex Corvi

---
_Source: https://npm.io/package/en-lexicon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
