Skip to content

[el] Add ξανα- transform#2357

Merged
Kuuuube merged 4 commits intoyomidevs:masterfrom
daxida:el-transform
Mar 31, 2026
Merged

[el] Add ξανα- transform#2357
Kuuuube merged 4 commits intoyomidevs:masterfrom
daxida:el-transform

Conversation

@daxida
Copy link
Copy Markdown

@daxida daxida commented Mar 28, 2026

This now works in wty thanks to yomidevs/wiktionary-to-yomitan@fe99f75 (non-lemmas now have rule identifiers)

Closes yomidevs/wiktionary-to-yomitan#295


Before, it wouldn't show any results for anything but ξανανθίζω (because ανθίζω was a lemma)

Now it is capable of ξαναρώτησε > ρώτησε > ρωτάω (in English, re-asked > asked > ask)

demo.webm

@daxida daxida requested a review from a team as a code owner March 28, 2026 07:59
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8564f81d7a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +44 to +46
isInflected: /^ξανα/,
// cf. import {removeAlphabeticDiacritics} from '../text-processors.js';
deinflect: (term) => term.replace(/^ξανα/, '').normalize('NFD').replace(/[\u0300-\u036f]/g, ''),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Narrow ξανα fallback to the forms it is meant to handle

This fallback rule currently matches every ξανα... verb (/^ξανα/) and strips all diacritics after removing the prefix, so inputs beyond the intended cases (commented as ξαναπάς/ξαναλές) also produce extra candidates like ξαναρώτησε -> ρωτησε. Because these candidates are still tagged as verbs (conditionsOut: ['v']), they can introduce incorrect matches when a dictionary contains accentless entries and always increase lookup fanout for ξανα- terms. Restricting the pattern to the targeted forms (or otherwise gating when deaccenting is applied) would avoid these false deinflections.

Useful? React with 👍 / 👎.

@daxida
Copy link
Copy Markdown
Author

daxida commented Mar 28, 2026

npx eslint . --ignore-pattern '**/*.json' is running fine locally, not sure what happened there.*

As for the codex review, it is true about the fanout, if that means that it will do some extra useless work, but the alternative is a bunch of edge cases (ξαναδεί, ξαναφάς etc.), or being able to know what a syllable is in Greek, which is even more code... It will never be incorrect matches as it says, at worst you have some dictionary with both ρώτησε and ρωτησε (very unlikely), and it will show both (which, even there, should have the same meaning). Honestly, I don't think it's a problem.

*Edit: it was the copyright year :/ serves me well for not updating my local repo.

@Kuuuube Kuuuube added kind/enhancement The issue or PR is a new feature or request area/linguistics The issue or PR is related to linguistics labels Mar 29, 2026
Copy link
Copy Markdown
Member

@Kuuuube Kuuuube left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idk anything about greek, I'll trust you on this one.

@Kuuuube Kuuuube added this pull request to the merge queue Mar 31, 2026
Merged via the queue into yomidevs:master with commit 5685983 Mar 31, 2026
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/linguistics The issue or PR is related to linguistics kind/enhancement The issue or PR is a new feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Yomitan transform and non-lemmas

2 participants