compromise
compromise copied to clipboard
modest natural-language processing
`nlp('I will never do that').verbs().toInfinitive().all().out()` returns "I will do that" "I never do that" becomes "I not do that" which seems expected However never is deleted when never is proceeded...
Using toSingular() results in loss of original case in the JSON term fields: Repro: `nlp('Those are Great Danes').nouns(0).toSingular().json()[0]` JSON output: ``` { "text": "Great dane", "normal": "great dane", "terms": [...
I have a custom lexicon that links hashtags to tags. This worked in an older version of compromise (v11.14) but does not seem to be working in 13.11.4. ```js //...
currently syllable results are normalized and lowercased. Often people want to hyphenize text inline, and this involves a weird mapping backward. I'm not sure what the best way to do...
Consider the match-syntax pattern: `before !(not|no|maybe|perhaps){0,9} after` Which could be described as: "the word _before_ followed by 0-9 words that can be anything except the words `(not|no|maybe|perhaps)`, followed by the...
Is it possible to use the units from js-quantities? https://github.com/gentooboontoo/js-quantities/blob/master/src/quantities.js
[email protected] Noticed the lib is removing some symbols unexpectedly when running the `json` methods. Ex: ![image](https://user-images.githubusercontent.com/5072452/154269028-2d32a32e-1e29-4e09-b22b-235c61f9a5b7.png) The same issue happens with `foo[bar]` or `foo{bar}`. Expected behaviour: ``` nlp('foo{bar} foo').json() =>...
Is there any Turkish language support or how can i implement it
I am not able to use these const nlp = require('compromise') nlp.extend(require('compromise-numbers')) in the react app. it shows nlp.extend is not a function. Similarly for emails() also it shows the...
Consider the following examples: > "her book" -> "their book" > "It was her!" -> "It was them!" In the first example, "her" is possessive; in the second example, it...