https://github.com/sharpcoder/moby-pos
An npm module for accessing the moby parts-of-speech database.
https://github.com/sharpcoder/moby-pos
Last synced: 7 months ago
JSON representation
An npm module for accessing the moby parts-of-speech database.
- Host: GitHub
- URL: https://github.com/sharpcoder/moby-pos
- Owner: SharpCoder
- License: mit
- Created: 2015-03-17T14:54:42.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-19T01:53:47.000Z (almost 11 years ago)
- Last Synced: 2025-02-01T04:03:39.139Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 1020 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About the project
This is an npm module for accessing the moby parts-of-speech package. Moby is an open source project with many linguistic databases (all public domain). You can access more about their project by visiting the following URL: [http://icon.shef.ac.uk/Moby/](http://icon.shef.ac.uk/Moby/)
# Using moby-pos
This npm module aims to be pretty simple to use. It has a single method which you can call to look up the parts of speech information for a given word.
```javascript
var pos = require('moby-pos');
console.log(pos.search("skeleton"));
```
# Reading the output
The output of the above code should be **N**. That stands for Noun. The complete list of meanings can be found below.
Meaning | Letter
------- | -------
Noun | N
Plural | P
Noun Phrase | h
Verb (usu participle) | V
Verb (transitive) | t
Verb (intransitive) | i
Adjective | A
Adverb | v
Conjunction | C
Preposition | P
Interjection | !
Pronoun | r
Definite Article | D
Indefinite Article | I
Nominative | o