ARTICLE AD BOX
const text = `This led him to settle in England, at that time an asylum for friends of freedom.`;
const doc = nlp(text);
const allNouns = doc.nouns().out('array');
console.log(allNouns);
<script src="https://unpkg.com/compromise"></script>
The result is:
["him", "England,", "an asylum", "friends of freedom."]I'm wondering why "time" in "that time an asylum" isn't parsed out.
Does compromise.js's POS tagger fail to tag 'time' as #Noun when between demonstrative pronoun and indefinite article? If so, is that a lexicon gap, a tagging-rule conflict, or a context-window limitation in /two?
