compromise icon indicating copy to clipboard operation
compromise copied to clipboard

awkward whitespace after matching 1 part of contraction

Open spencermountain opened this issue 3 years ago • 0 comments

via email from Brian Gallagher:

Awkward whitespace output from matching first-part contraction.

let str = `Leonard's was Randall`
let doc = nlp(str)
console.log(doc.match('#Noun').text())
//'Leonard'sRandall'

same for Toronto's was Canada.

Both cases should not be a contraction, in the first-place. But maybe this is a problem with using 1 part of a contraction independent from its other part.

spencermountain avatar Sep 09 '20 15:09 spencermountain