compromise
compromise copied to clipboard
awkward whitespace after matching 1 part of contraction
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.