compromise-adjectives
v0.0.7
Published
smart-replace plugin for nlp-compromise
Downloads
104
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
quicktoquickest - .adjectives().toComparative() - convert
quicktoquickest - .adjectives().toAdverb() - convert
quicktoquickly - .adjectives().toVerb() - convert
quicktoquicken - .adjectives().toNoun() - convert
quicktoquickness
work-in-progress
MIT
