Compromise: False positive when detecting questions

Created on 25 Oct 2018  路  4Comments  路  Source: spencermountain/compromise

https://runkit.com/shamoons/false-positive-compromise

const nlp = require('compromise')

let res = nlp('Let me run get a price take about 5-10  minutes to process and then I\'ll send you what I got.').sentences().isQuestion().out('array')

console.log(res)

This is being detected as a question, when it is evidently not.

bug good-first-bug ready

Most helpful comment

I'm on it

All 4 comments

nice find!
Relevant code is here if anyone wants to jump on this. Otherwise, happy to take a look

I'm on it

@spencermountain - when I console.log to debug, nothing prints out when running yarn test. Any tips?

@shamoons oh right, i think that test-reporter disables them, you can see console logs if you do
yarn test:spec
i should fix that...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

josephrocca picture josephrocca  路  6Comments

elderbas picture elderbas  路  7Comments

zzj0402 picture zzj0402  路  4Comments

charles-toller picture charles-toller  路  3Comments

DominoTree picture DominoTree  路  5Comments