Skip to content

Conversation

daxida
Copy link

@daxida daxida commented May 9, 2025

Partially fixes #233.

There are not many changes since the heavy lifting is done at kaikki.

In short, of redirections (like this one) are already parsed via kaikki, and we just read the form_of key here. I added a regex match of του (i.e. of) to avoid messing with other dictionaries.

Tests seem coherent, and the dictionary that I made with these changes now properly redirects (I forgot to take a picture of the before, this is just the now version -- before it was just something on the lines of accusative case of blabla). From κόρφος

image

Inflection information is not parsed for the moment, I just quickly jammed the lemma itself to force the entry to appear in the term bank.

Note that adding the inflection information shouldn't be hard, since kaikki already does the job at the tag level. Cf.

{"word": "κόρφο", "forms": [{"form": "κόρφο", "raw_tags": ["αρσενικό"]}], "lang_code": "el", "lang": "Greek", "pos": "noun", "senses": [{"glosses": ["αιτιατική ενικού του κόρφος"], "tags": ["accusative", "singular"], "form_of": [{"word": "κόρφος"}]}]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[el] Greek edition redirects
1 participant