Page MenuHomePhabricator

Wrong capitalization of subjects names in ArticleGuidance in french
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
Inappropriate capitalization of subject names (it might be correct capitalization in english, but not in french and probably other languages as well)

image_2026-05-25_155516203.png (810×586 px, 28 KB)

What should have happened instead?:
Only first letter of a title is capitalized in french

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

SBisson triaged this task as Medium priority.
SBisson added a project: LPL Hypothesis.
SBisson moved this task from Backlog to In-progress on the LPL Hypothesis board.

Change #1293137 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ArticleGuidance@master] Capitalize outline labels in the API layer

https://gerrit.wikimedia.org/r/1293137

Was the failure to capitalise "English" and "French" in the report an attempt at irony?

Was the failure to capitalise "English" and "French" in the report an attempt at irony?

No

Change #1293137 merged by jenkins-bot:

[mediawiki/extensions/ArticleGuidance@master] Capitalize outline labels when fetched

https://gerrit.wikimedia.org/r/1293137

Feedback on wiki https://www.mediawiki.org/w/index.php?title=Talk:Article_guidance&diff=prev&oldid=8445231

The weird capitalization at every letter has been fixed, thank you. Now however, there seems to be a bug (or a feature I don't understand) where only some categories are capitalized : for instance, it's "Être humain" and "Profession" while their wikidata items are not capitalized and there is no label override, while it's "animal" and "conflit" for other categories in the same situation.

I purged the cache for the remaining outlines on frwiki so they should all be properly capitalized now. I did not go through the other wikis but they will all eventually expire from cache and be regenerated correctly.

The original issue is solved. For example, multi-word items such as "club sportif" are no longer using title case ("Club Sportif"). However, the capitalization of the initial letter seems inconsistent. In the example below we can find some cases where it is capitalized ("Animal") and others where it is not ("bâtiment") while the outlines or Wikidata items for those do not seem to have a difference that explains the different treatment.

fr.wikipedia.org_wiki_Sp%C3%A9cial_NewArticle(Wiki Mobile).png (320×568 px, 50 KB)

Change #1306290 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ArticleGuidance@master] Capitalize outline names in API output

https://gerrit.wikimedia.org/r/1306290

Change #1306290 merged by jenkins-bot:

[mediawiki/extensions/ArticleGuidance@master] Capitalize outline names in API output

https://gerrit.wikimedia.org/r/1306290

Tested on frwiki and the capitalization of the initial letter is now consistent and correct.

image.png (2,154×1,746 px, 373 KB)

GGalofre-WMF subscribed.

Replicated and it is working as expected.