Skip to content

Casing in grammar checker #4

@flammie

Description

@flammie

Currently the grammar-checker fails to realise the case in following:

$ echo an Uachtarán | tools/grammarcheckers/modes/glegram.mode
"<an>"
	"an" Art Sg Def <W:0.0> ID:1
:
"<Uachtarán>"		Uachtarán	→  T-uachtarán	→  TUachtarán
	"uachtarán" Noun Masc Com Sg <W:0.0> &msyn-noun-defart ID:2 R:$2:1
msyn-noun-defart
	"uachtarán" Noun Masc Com Sg <W:0.0> DefArt SUGGEST ID:2 R:$2:1
uachtarán+Noun+Masc+Com+Sg+DefArt	t-uachtarán,tUachtarán
:\n

$ echo an Uachtarán | divvun-runtime run -p tools/grammarcheckers/bundle.drb

[
  {
    "form": "Uachtarán",
    "beg": 3,
    "end": 13,
    "err": "msyn-noun-defart",
    "msg": [
      "msyn-noun-defart",
      "msyn-noun-defart"
    ],
    "rep": [
      "T-uachtarán",
      "TUachtarán"
    ]
  }
]

The expected result would be "tUachtarán", I think it needs some work on cg rules / lexc and some on libdivvun / divvunruntime. Is there existing codes that would work for this @unhammer ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions