Wikipedia article translation metrics/How to detect translated articles

This research is based on talking with editors and on insights following a detailed comparison between translated articles and originals articles.

Finding the right revision

 * 1) In the target wiki (the article that is a candidate for being translated), we should search for the earliest revision that is stable and has enough bites. This version was edited by the creator of the article. Usually, it won't be the first revision but the fourth or fifth.
 * 2) *What's earliest?
 * 3) **Timestamp is preserved after import from another wiki; rev_id doesn't ensure chronological order.
 * 4) **Must look for the earliest rev_timestamp which has either rev_user > 0 or rev_user = 0 and rev_user_text resembling an IP (using rev_user_text is hacky; rev_parent_id might help?).
 * 5) * A few definitions for stable:
 * 6) ** Until another author made changes.
 * 7) ** No one edited the article for a while.
 * 8) ** A bot added langlinks.
 * 9) ** The change in bytes is small (less than 50)
 * 10) In the source wiki (original article from the source language), we should search for the closest (from below) edit.

Traces of another language

 * 1) Editors copy the original article (in the original language) to the target article:
 * 2) Look at the first target revision.
 * 3) If it is in a similar size (+- 20%) to the source version then check if it is in a different language than the target one (for the same alphabet use Google translate to detect the language).
 * 4) Another option is to check if the first sentence is identical in both versions.
 * 5) For examples see “ היסטוריה של אנדורה ” (in Hebrew from Catalan) and Roberto Melli (in English from Italian). Both demonstrate the shift in language from the first target version until the stable version.
 * 6) References of the source article are in another language (e.g., here). Can be seen in the first version of the article.
 * 7) * Notice that that it might not work when translating from English.
 * 8) Headlines in a different language.
 * 9) Source, Notes, External links, Further reading of the source article are in another language (e.g., here). This data is part of the article from its creation.
 * 10) The target language editor edits the source article with an edit that is more meaningful than only adding langlink to the target language.
 * 11) In articles created before the transition to wikidata, the first draft already has langlinks in the code to all the other languages (maybe except the source).

Manual annotations

 * 1) Comments about “translated from”, “translation of” “ תורגם מ ” [he] etc.
 * 2) * A legacy but common practice is to inform others about the source of the translation in the talk page.
 * 3) * The legally required/sufficient practice, per Terms of use, to write in the edit summary (revision comments) whether the page was translated and from where.
 * 4) A translation template.
 * 5) * Template:Translated_page for the english version. It is Available in 63 languages.
 * 6) * Related templates can be found here: https://en.wikipedia.org/wiki/Category:Wikipedia_translation_templates
 * 7) * Example :
 * 8) Weaker possibility: the language name or code in the talk page.

Structure

 * 1) Table of contents structure.
 * 2) Paragraph structure:
 * 3) Number of paragraphs in a section.
 * 4) Similar length of paragraphs (normalizing by language).

Location and order

 * 1) The order of interlinks in the text.
 * 2) * Should look at the order of intersection links, specifically how many links are in one of the articles that are not in the other.
 * 3) * Maybe localizing to paragraph/subject.
 * 4) * Different languages have different sentence structure. We might need to find the right separator for shifting the order.
 * 5) * Can we do it without translating interlinks? It might be possible because the links themselves should be connected
 * 6) The location and order of numbers and dates.
 * 7) * Should enable understanding of the paragraph without translation.
 * 8) Order and location of references (should match) in the text.
 * 9) Order and location of notes in the text.
 * 10) Matching between the presented order of references (i.e., in the paragraph “References”), external links, further reading, images.

Other properties

 * 1) bad translation.
 * 2) * The page Wikipedia:Translation, which exists in 49 languages, explains the do's and don'ts of translation for each language.
 * 3) * In Hewiki there is a page that points to common translation mistakes. I is specific for Hebrew but has lots of value for that language. We should think if we want to use it (and search similar pages in other languages). For example, searching for unproportional use of words (e.g. משקל הופעל; יכול היה ) that is caused by bad translation.
 * 4) * When searching if it was translated from German, irregular sentence length should be checked.
 * 5) Headlines are translated
 * 6) * Use “Google Translate” or another machine translation for aid.
 * 7) ** Detect the language in versions that the source was copied.
 * 8) * Create a list of the common translated headlines e.g., references, external links, see also, further reading.

Types of translated articles

 * 1) Exact translation - the source and target contain the same information.
 * 2) Partial translation - not all the information was translated from the source but all the information that is in the target article can be found in the source. The translator changed the division of the paragraphs. The order is the same but it is shorted than the original article.
 * 3) * For example: Original article for Marcel Marceau in English and translated article in Hebrew.
 * 4) More than one possible "father" as the source.
 * 5) Translation from more than one source.
 * 6) Inspirational translation

Unanswered problems and other directions:

 * 1) Machine translation.
 * 2) * A note about it should be in the talk page or main page.
 * 3) Pages that were deleted.
 * 4) Is there a way to look at draft pages?
 * 5) What can we do with the information regarding the editor adding a langlink to another wiki at the start of the edit.
 * 6) * Maybe it can point to the possibility that it was translated from it.
 * 7) * Nowadays a new link is added to the item in Wikidata.