Skip to content

casonclagg/fast-pos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published