1.0.1 • Published 7 years ago

fast-pos v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

FastPOS

Fast parts of speech for javascript.

Usage

npm i -S fast-pos
import FastPOS from 'fast-pos'

let pos = new FastPOS()
let output = pos.partsOfSpeech("I am the one who knocks.")

console.log(output)

/*
[ { word: 'i', pos: [ 'N' ] },
  { word: 'am', pos: [ 'V' ] },
  { word: 'the', pos: [ 'v', 'D' ] },
  { word: 'one', pos: [ 'N', 'D', 'r' ] },
  { word: 'who', pos: [ 'r' ] },
  { word: 'knocks', pos: [] } ]
*/

TODO

  • knocks isn't showing up as anything... its not in this dictionary... find a better dictionary.