Page MenuHomePhabricator

CX2: Punctuation or determiners are added inside a link, while should be put after it
Open, LowPublicBUG REPORT

Description

Punctuation is sometimes added inside a link, while it should be put after it.

It's visible today with a comma: [[Jacob K. Javits|Jacob Javits,]] instead of [[Jacob K. Javits|Jacob Javits]], on this translation: https://fr.wikipedia.org/w/index.php?title=George_Gilder&oldid=227705337

This task appears to track the same issue before visualeditor was used: T113482: Final link eats final punctum (dot) in sentence.

Event Timeline

Nikerabbit moved this task from Needs Triage to Content handling on the ContentTranslation board.
Nikerabbit subscribed.

Which translation engine?

Which translation engine?

I can reproduce the issue in the following translation, with Google translate engine. Translate last paragraph (starting with "Nunavut"), and a coma will appear in "inuktitut" link.

Similarly, translated links often contain determiners, even though they appear earlier in the original article. I am currently using a bot to remove the following determiners from the beginnings of links in translations published on frwiki:

remove_determiners_at_begining_of_links = ("à l'", "et l'", 'le ', 'les ', 'la ', 'à ', "l'", 'et ', "à l'", 'a ', 'au ', "de l'", 'du ', "d'", 'des ', 'de ', 'du ', 'dans ', "sur l'", 'sur la ', 'sur le ', 'sur ')
remove_determiners_at_end_of_links = (' du', ' de', ' le', ' les', ' la', ' à', ' et', ' a', ' au', ',')

Example: https://fr.wikipedia.org/w/index.php?diff=prev&oldid=230842695, that published [[Pianiste|le pianiste]] instead of le [[pianiste]].
List of real-time corrections.

Framawiki renamed this task from CX2: Punctuation is added inside a link, while it should be put after it to CX2: Punctuation or determiners are added inside a link, while should be put after it.Nov 23 2025, 9:37 PM