Repository navigation
[CS] Show the synonyms under their meaning - #2837
Merged
Merged
Conversation
The CS Wiktionary writes one synonyms line per meaning, as RU and UK do, so utils.attach_synonyms() applies. The categories that can follow the last section of a page no longer stop the matching.
This was referenced Nov 9, 2026
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.
Following up on #2815: CS has the same layout as RU and UK. "synonyma" has one line per meaning, in the same order, with a dash for a meaning without synonyms. So
utils.attach_synonyms()applies as it is:Two details:
[[Kategorie:Česká substantiva]]). They counted as a line that isn't a list item, so the list was kept as it was.attach_synonyms()now skips such links. RU and UK don't change: I compared 1,500 pages with synonyms in each.On the 20261101 dump, 20,014 of the 20,429 Czech sections with synonyms get them under their meanings. The other 415 keep their list: bullets instead of numbers, more lines than meanings, or references spread over several lines. On a sample of 1,500 pages, no meaning is lost, and only 1 page still has a separate synonyms list instead of 721.
The "kámen" and "popření" tests now expect the synonyms under their meanings, and there are doctests for the categories and for CS. The CS tests pass with a CS dump, and the RU/UK/BG checks still pass.