Skip to content

[RU] Don't take the words of an analytic form as forms - #2840

Merged
BoboTiG merged 1 commit into
reader-dict:mainfrom
monosans:fix/ru-analytic-forms
Nov 12, 2026
Merged

BoboTiG merged 1 commit into
reader-dict:mainfrom
monosans:fix/ru-analytic-forms

Conversation

@monosans

Copy link
Copy Markdown
Contributor

Follow-up to your review comment on #2801 about EN-RU.

render_reverse_variant() splits every cell on spaces, because RU cells can hold several forms: "его́, него́", "ва́шей ва́шею". An English adjective table has analytic forms instead, "more plaintive" and "most plaintive", so "more" and "most" became forms of the adjective. On a sample of 3,000 of the 8,886 {{прил en}} pages in the RU dump, 320 adjectives got them.

A part of a cell that holds the word itself is an analytic form, so its words are now left out. "plaintive" gets no forms, "happy" still gets "happier" and "happiest", and RU cells are split as before. 5 of those 3,000 adjectives still get "more" and "most": their pages pass empty parameters to the template, so the cell has no word to match ("spiritual", "honey").

Testing

  • RU dump 20261101, Python 3.13.18 in python:3.13-slim on Windows 11.
  • I called render_reverse_variant() on the 3,000 {{прил en}} pages with main and with this branch: from 320 to 5 adjectives with "more"/"most".
  • parse_word() on samples of RU pages (800 verbs, 600 nouns, 600 adjectives, all 393 {{мест ru}} pages, 400 numerals, 400 surnames) gives exactly the same forms as on main.
  • New doctests for "plaintive" and "happy". The RU/UK/BG tests and doctests, ruff and mypy pass.

A cell of an English adjective table gives "more plaintive", and splitting it on
spaces made "more" and "most" forms of thousands of adjectives in EN-RU. A part
of a cell that holds the word itself is now left out; cells with several forms,
like "ва́шей ва́шею", are still split.
@BoboTiG
BoboTiG merged commit c503830 into reader-dict:main Nov 12, 2026
1 check passed
@BoboTiG

BoboTiG commented Nov 12, 2026

Copy link
Copy Markdown
Member

Thanks @monosans !

@monosans
monosans deleted the fix/ru-analytic-forms branch November 12, 2026 19:45
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.

2 participants