# wordnet.book

> In memory WordNet.

Latest version **0.3.5** (published 2018-02-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install wordnet.book
pnpm add wordnet.book
yarn add wordnet.book
bun add wordnet.book
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.5 |
| Published | 2018-02-12 |
| First published | 2018-01-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 25 |
| Unpacked size | 20.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wolfram77@gmail.com |
| Maintainers | wolfram77 |
| Keywords | wordnet, book |

## Links

- npm: https://www.npmjs.com/package/wordnet.book
- npm.io page: https://npm.io/package/wordnet.book

## Dependencies (25)

- [set-addall](https://npm.io/package/set-addall.md) ^0.1.2
- [wordnet.bag](https://npm.io/package/wordnet.bag.md) ^0.1.8
- [wordnet.blob](https://npm.io/package/wordnet.blob.md) ^0.2.2
- [wordnet.block](https://npm.io/package/wordnet.block.md) ^0.1.10
- [wordnet.bunch](https://npm.io/package/wordnet.bunch.md) ^0.1.15
- [wordnet.index](https://npm.io/package/wordnet.index.md) ^0.2.4
- [wordnet.table](https://npm.io/package/wordnet.table.md) ^0.2.2
- [wordnet.lextype](https://npm.io/package/wordnet.lextype.md) ^0.1.4
- [integer-maxvalue](https://npm.io/package/integer-maxvalue.md) ^0.1.1
- [wordnet.lexnumber](https://npm.io/package/wordnet.lexnumber.md) ^0.1.5
- [wordnet-expandsynset](https://npm.io/package/wordnet-expandsynset.md) ^0.1.2
- [wordnet-posnamearray](https://npm.io/package/wordnet-posnamearray.md) ^0.1.2
- [wordnet-posnumbermap](https://npm.io/package/wordnet-posnumbermap.md) ^0.1.2
- [wordnet-possymbolarray](https://npm.io/package/wordnet-possymbolarray.md) ^0.1.2
- [wordnet.lextype-tolexid](https://npm.io/package/wordnet.lextype-tolexid.md) ^0.1.2
- [wordnet-lexfilenamearray](https://npm.io/package/wordnet-lexfilenamearray.md) ^0.1.2
- [wordnet-pointernumbermap](https://npm.io/package/wordnet-pointernumbermap.md) ^0.1.5
- [wordnet.gloss-toexamples](https://npm.io/package/wordnet.gloss-toexamples.md) ^0.1.1
- [wordnet.gloss-todefinition](https://npm.io/package/wordnet.gloss-todefinition.md) ^0.1.1
- [wordnet-lexfilecontentarray](https://npm.io/package/wordnet-lexfilecontentarray.md) ^0.1.2
- [wordnet-verbframestextarray](https://npm.io/package/wordnet-verbframestextarray.md) ^0.1.3
- [wordnet.lextype-tolexnumber](https://npm.io/package/wordnet.lextype-tolexnumber.md) ^0.1.2
- [wordnet.lexnumber-toposnumber](https://npm.io/package/wordnet.lexnumber-toposnumber.md) ^0.1.2
- [wordnet-pointernumberconstants](https://npm.io/package/wordnet-pointernumberconstants.md) ^0.1.6
- [wordnet.lexnumber-tolexfilenumber](https://npm.io/package/wordnet.lexnumber-tolexfilenumber.md) ^0.1.2

## Recent versions

- 0.3.5 (latest) — 2018-02-12
- 0.3.4 — 2018-02-12
- 0.3.3 — 2018-02-12
- 0.3.2 — 2018-02-12
- 0.3.1 — 2018-02-12
- 0.3.0 — 2018-02-12
- 0.2.10 — 2018-02-12
- 0.2.9 — 2018-02-12
- 0.2.8 — 2018-02-12
- 0.2.7 — 2018-02-12
- 0.2.6 — 2018-02-12
- 0.2.5 — 2018-02-12
- 0.2.4 — 2018-02-10
- 0.2.3 — 2018-02-10
- 0.2.2 — 2018-02-10
- … 20 more at https://npm.io/package/wordnet.book/versions

## README

# wordnet.book

[![NPM](https://nodei.co/npm/wordnet.book.png)](https://nodei.co/npm/wordnet.book/)

Defines [WordNet] dictionary loader.
> For usage examples, see [wordnetdictionary].

```javascript
const Book = require('wordnet.book');
// Book([index], [table], [blob])
// -> Book {<index>, <table>, <blob>}

// Load prebuilt book data.
// -> this
fromJson(book data)

// Load data maps.
// -> this
fromDataMap(data map...)

// Build index, after loading data.
// - <name func>(<name>, <index>, <table>)
// -> this
buildIndex([name func], [this])

// Get as JSON.
// -> <json>
toJson([include index=false])

// Get name from id.
// -> <name> (if word) | null (if synset)
name(id)

// Get lex type from id.
// -> <lex type>
lexType(id)

// Get lex id from id.
// -> <lex id>
lexId(id)

// Get lex number from id.
// -> <lex number>
lexNumber(id)

// Get part of speech number from id.
// -> <pos number>
posNumber(id)

// Get part of speech symbol from id.
// -> <pos symbol>
posSymbol(id)

// Get part of speech name from id.
// -> <pos name>
posName(id)

// Get lex file number from id.
// -> <lex file number>
lexFileNumber(id)

// Get lex file name from id.
// -> <lex file name>
lexFileName(id)

// Get lex file content from id.
// -> <lex file content>
lexFileContent(id)

// Check if id is lemma.
// -> true | false
isLemma(id)

// Check if id is synset.
// -> true | false
isSynset(id)

// Get synset from id.
// -> <synset>
synset(id)

// Get lemmas of id.
// -> Bunch {<id>...}
lemmas(id, [target])

// Get pointers from id.
// -> Bunch {<id>...}
pointers(id, [kbegin=0], [kend=32], [direct=false], [target])

// Get pointer tree from id.
// -> Bunch {<id>...}
pointerTree(id, [kbegin=0], [kend=32], [direct=false], [target])

// Get frames from id.
// -> Set {<frame number>...}
frames(id, [direct=false], [target])

// Get frames text from id.
// -> Set {<frame text>...}
framesText(id, [direct=false], [target])

// Get gloss from id.
// -> <gloss>
gloss(id)

// Get definition from id.
// -> <definition>
definition(id)

// Get examples from id.
// -> Set {<example>...}
examples(id, [target])

// Get description from id.
// -> <description>
description(id, [hide lex file name=false], [hide lex id=false], [hide definition=false], [hide examples=false])

// Get synonyms from id.
// -> Bunch {<id>...}
synonyms(id, [target])

// Get similar to pointers from id.
// -> Bunch {<id>...}
similarTo(id, [target])

// Get verb group pointers from id.
// -> Bunch {<id>...}
verbGroup(id, [target])

// Get also see pointers from id.
// -> Bunch {<id>...}
alsoSee(id, [target])

// Get antonym pointers from id.
// -> Bunch {<id>...}
antonyms(id, [target])

// Get pertainym pointers from id.
// -> Bunch {<id>...}
pertainyms(id, [target])

// Get attribute pointers from id.
// -> Bunch {<id>...}
attributes(id, [target])

// Get cause pointers from id.
// -> Bunch {<id>...}
causes(id, [target])

// Get entailment pointers from id.
// -> Bunch {<id>...}
entailments(id, [target])

// Get derivationally related form pointers from id.
// -> Bunch {<id>...}
derivationallyRelatedForms(id, [target])

// Get participle of verb pointers from id.
// -> Bunch {<id>...}
participlesOfVerb(id, [target])

// Get hypernym pointers from id.
// -> Bunch {<id>...}
hypernyms(id, [target])

// Get hypernym tree pointers from id.
// -> Bunch {<id>...}
hypernymTree(id, [target])

// Get class hypernym pointers from id.
// -> Bunch {<id>...}
classHypernyms(id, [target])

// Get class hypernym tree pointers from id.
// -> Bunch {<id>...}
classHypernymTree(id, [target])

// Get instance hypernym pointers from id.
// -> Bunch {<id>...}
instanceHypernyms(id, [target])

// Get instance hypernym tree pointers from id.
// -> Bunch {<id>...}
instanceHypernymTree(id, [target])

// Get hyponym pointers from id.
// -> Bunch {<id>...}
hyponyms(id, [target])

// Get hyponym tree pointers from id.
// -> Bunch {<id>...}
hyponymTree(id, [target])

// Get class hyponym pointers from id.
// -> Bunch {<id>...}
classHyponyms(id, [target])

// Get class hyponym tree pointers from id.
// -> Bunch {<id>...}
classHyponymTree(id, [target])

// Get instance hyponym pointers from id.
// -> Bunch {<id>...}
instanceHyponyms(id, [target])

// Get instance hyponym tree pointers from id.
// -> Bunch {<id>...}
instanceHyponymTree(id, [target])

// Get holonym pointers from id.
// -> Bunch {<id>...}
holonyms(id, [target])

// Get member holonym pointers from id.
// -> Bunch {<id>...}
memberHolonyms(id, [target])

// Get substance holonym pointers from id.
// -> Bunch {<id>...}
substanceHolonyms(id, [target])

// Get part holonym pointers from id.
// -> Bunch {<id>...}
partHolonyms(id, [target])

// Get meronym pointers from id.
// -> Bunch {<id>...}
meronyms(id, [target])

// Get member meronym pointers from id.
// -> Bunch {<id>...}
memberMeronyms(id, [target])

// Get substance meronym pointers from id.
// -> Bunch {<id>...}
substanceMeronyms(id, [target])

// Get part meronym pointers from id.
// -> Bunch {<id>...}
partMeronyms(id, [target])

// Get domain of synset pointers from id.
// -> Bunch {<id>...}
domain(id, [target])

// Get domain of synset (topic) pointers from id.
// -> Bunch {<id>...}
topicDomain(id, [target])

// Get domain of synset (region) pointers from id.
// -> Bunch {<id>...}
regionDomain(id, [target])

// Get domain of synset (usage) pointers from id.
// -> Bunch {<id>...}
usageDomain(id, [target])

// Get member of this domain pointers from id.
// -> Bunch {<id>...}
domainMembers(id, [target])

// Get member of this domain (topic) pointers from id.
// -> Bunch {<id>...}
topicDomainMembers(id, [target])

// Get member of this domain (region) pointers from id
// -> Bunch {<id>...}
regionDomainMembers(id, [target])

// Get member of this domain (usage) pointers from id.
// -> Bunch {<id>...}
usageDomainMembers(id, [target])
```


[WordNet]: https://wordnet.princeton.edu/wordnet/
[wordnetdictionary]: https://www.npmjs.com/package/wordnetdictionary

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