Skip to content

Incorrect inflection of patronymics #12

@ArkhipovK

Description

@ArkhipovK

Wrong normalisation of patronymic words.

const morp = Az.Morph("Александрович")[0]
morp.normalize()

will return

{
  formCnt: 36
  formIdx: 0
  paradigm: Uint16Array(108) [ 0, 52, 12283, … ]
  paradigmIdx: 26
  prefix: ""
  score: 1
  stutterCnt: 0
  suffix: ""
  tag: Object { NOUN: true, POST: "NOUN", anim: true, … }
  typosCnt: 0
  word: "александр"
}

So the inflections of this word is also wrong

morp.inflect({CAse: 'datv'})
/*
  ...
  tag: Object { NOUN: true, POST: "NOUN", anim: true, … }
  typosCnt: 0
  word: "александру"
*/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions