Skip to content

Курс двуязычен — и сказать это там, где число никто не проверял - #24

Merged
DenisDrobyshev merged 1 commit into
mainfrom
fix/lemma-is-bilingual
Sep 20, 2026
Merged

DenisDrobyshev merged 1 commit into
mainfrom
fix/lemma-is-bilingual

Conversation

@DenisDrobyshev

Copy link
Copy Markdown
Member

Обе карточки называли lemma русским курсом. Это перестало быть правдой, когда была доделана английская сборка: двадцать семь модулей на каждом языке, за ними одни и те же ноутбуки. Карточка — то место, где читатель решает, для него ли курс, и англоязычному она говорила «не для тебя».

То же самое стояло в CITATION.cff и .zenodo.json самой lemma (DrobyshevDev/lemma#13) и в профиле организации (0bca4ae) — там исправлено.

Число рядом с этим никто не проверял

Обе карточки говорят «27» цифрами, профиль говорит «twenty-seven» словами, дважды. Ни одно из четырёх мест ни с чем не связано.

Это ровно та форма, в которой страницу уже ловили: счётчики decisionrl поправили везде, где они стояли цифрами, и они пережили правку в профиле — прописью. Об этом написано в докстринге самого check_figures.py.

Источник — CITATION.cff самой lemma, который её же scripts/check_counts.py теперь держит при docs/modules/ на каждом пуше. То есть это не второе мнение о числе модулей, а то же самое число, прослеженное на один репозиторий дальше. На карточках проверяются цифры, в профиле — слова, пропавший счёт сообщается, а не проходит молча.

Чего стоило добавление

В WORDS не было ничего между двадцатью пятью и двадцатью девятью, поэтому первый прогон сказал про lemma «unchecked», а не «всё сходится». Это ровно то поведение, которого файл требует от себя сам, — и единственная причина, по которой дыру было видно. Добавлены двадцать шесть, двадцать семь, двадцать восемь.

Проверено

Сломал копию и посмотрел, что скажет:

что сломано что сказал
карточки уехали на 28 index.html: says 28 modules, lemma has 27 и то же про ru/index.html
счёт убран с карточек вовсе index.html: no longer states how many modules lemma has и то же про ru/index.html

На неизменённом дереве — Every figure that can be checked matches its source.

…ys so

Both cards described lemma as Russian. That stopped being true when the English
build was finished -- twenty-seven modules in each language, behind the same
notebooks -- and the card is where a reader decides whether the course is for
them. lemma's own CITATION.cff, .zenodo.json and README said the same thing and
are corrected; the organisation profile said it too and is corrected.

The count beside it was unchecked. Both cards state 27 in digits and the
profile states twenty-seven in words, twice, and nothing tied any of the four to
the course. This is the shape the page has already been caught in: decisionrl's
counts were corrected everywhere the digits appeared and survived in the
profile, spelled out.

The source is lemma's CITATION.cff, which lemma's own scripts/check_counts.py
now holds to docs/modules/ on every push. So this is not a second opinion about
how many modules there are -- it is the same count, followed one repository
further out. Digits on the cards, words in the profile, and a missing count
reported rather than passed.

WORDS had no entry between twenty-five and twenty-nine, so the first run
reported lemma as unchecked instead of claiming it was fine -- which is the
behaviour the file asks for, and the reason the gap was visible at all. Added
twenty-six through twenty-eight.

Checked by breaking a copy: cards moved to 28 -- both reported; the count
removed from the cards altogether -- both reported.
@DenisDrobyshev
DenisDrobyshev merged commit c0268cb into main Sep 20, 2026
6 checks passed
@DenisDrobyshev
DenisDrobyshev deleted the fix/lemma-is-bilingual branch September 20, 2026 15:44
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.

1 participant