Repository navigation
[RU] Don't take the words of an analytic form as forms - #2840
Merged
Merged
Conversation
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.
Member
|
Thanks @monosans ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
python:3.13-slimon Windows 11.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.