compromise-adjectives
v0.0.7
Published
smart-replace plugin for nlp-compromise
Downloads
58
Readme
Some additional conjugation of adjectives
const nlp = require('compromise')
nlp.extend(require('compromise-adjectives'))
let doc = nlp('quick')
doc.adjectives().json()
/*
[{
text:'quick',
toNoun:'quickness',
toAdverb:'quickly'
toVerb:'quicken'
toComparative:'quicker'
toSuperlative:'quickest'
}]
*/
- .adjectives() - like
quick
- .adjectives().json() - overloaded output with adjective metadata
- .adjectives().conjugate() - return all conjugated forms of this adjective
- .adjectives().toSuperlative() - convert
quick
toquickest
- .adjectives().toComparative() - convert
quick
toquickest
- .adjectives().toAdverb() - convert
quick
toquickly
- .adjectives().toVerb() - convert
quick
toquicken
- .adjectives().toNoun() - convert
quick
toquickness
work-in-progress
MIT