Compromise: Roses incorrectly marked as verb

Created on 4 Jun 2016  路  2Comments  路  Source: spencermountain/compromise

In nlp.text("4 red roses").terms(), roses is a verb. Roses should be a noun in this case because it comes after an adjective.

bug quick fix

Most helpful comment

Resolved, waiting to be merged. (#204)

All 2 comments

> nlp.text("five kittens").terms()
[ Value {
    whitespace: { preceding: '', trailing: ' ' },
    text: 'five',
    normal: 'five',
    expansion: null,
    reason: 'is_value',
    pos: { Noun: true, Value: true },
    tag: 'Value',
    number: 5,
    unit: '',
    unit_name: null,
    measurement: null,
    of_what: '' },
  Verb {
    whitespace: { preceding: '', trailing: '' },
    text: 'kittens',
    normal: 'kittens',
    expansion: null,
    reason: 'rules_pass_37',
    pos: { Verb: true },
    tag: 'Verb' } ]

Kittens should be marked as a noun because it follows a number.

Resolved, waiting to be merged. (#204)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

struesdell picture struesdell  路  3Comments

zzj0402 picture zzj0402  路  4Comments

josephrocca picture josephrocca  路  6Comments

fhoffa picture fhoffa  路  4Comments

MarkHerhold picture MarkHerhold  路  5Comments