UNPKG

compromise

Version:

modest natural language processing

41 lines (38 loc) • 854 B
import merge from './_lib.js' import noun from './_noun.js' import verb from './_verb.js' import tags from '../../tagSet/aliases.js' const { Sing: nn, Inf: vb } = tags // 'boot the ball' - 'the red boot' // 'boots the ball' - 'the red boots' const misc = { beforeTags: { // Noun: undefined Adjective: nn,//great name Particle: nn//brought under control }, afterTags: { ProperNoun: vb, Gerund: vb, Adjective: vb, Copula: nn }, beforeWords: { // is time is: nn, was: nn, //balance of power of: nn, have: null //have cash }, afterWords: { // for: vb,//work for instead: vb, // that: nn,//subject that was // for: vb,//work for about: vb,//talk about his: vb,//shot his her: vb,// to: null, by: null, in: null }, } export default merge(verb, noun, misc)