Hello, This is the weekly update from the Search Platform team for the week starting 2019-01-14.
As always, feedback and questions welcome.
== Discussions ==
=== Search === * Trey updated TextCat with models for detecting Russian typed on an English keyboard and vice-versa, and UTF-8 Russian text improperly encoded as Windows-1251, [0] as a precursor to providing wrong-keyboard/encoding detection and suggestion. [1] * Erik and the team did a lot of work on an epic ticket (with several sub tasks) to explore and figure out next steps in using user click data to tune Wikidata search parameters [2] and [3]. The team will ship the newly tuned wbsearchentities profile for en soon with de, fr, es afterward. * The team also had lots of discussions and exploration on how to transform Wikidata autocomplete click logs into a useful dataset. They are now transformed: Relevance Forge now has a utility for taking in the Wikidata completion search logs and tuning the parameters of search based on those logs. [4] * David fixed a minor regression where search request failures when offset+limit is out of bounds (cirrussearch-backend-error) [5] * Mathew discovered that the required metrics have been exposed by the prometheus exporter but they are displaying and fixed the issue with help from David and Gehel [6] * David reconfigured the ElasticSearch crosscluster on production search servers to have persistent configs [7]
=== WDQS === * Stas & Guillaume finished moving categories namespace into a separate Blazegraph instance [8]
== Did you know? == English text, like many others, is written left-to-right (LTR), but some languages—most notably Arabic, Hebrew, Persian, and Urdu, but also many others [9]—are written right-to-left (RTL). To handle different writing directions—especially in mixed LTR and RTL texts—Unicode classifies characters as having "strong", "weak", or "neutral" directionality. Strong characters definitely go in a particular direction, like ABC or אבג. Weak characters have a "vague" directionality, but can be changed in context, mostly numbers. Neutral characters pick up their directionality from context, like punctuation and whitespace characters used across scripts.
Mirrored characters change the way they display based on context. For example "A>B>C" and "א>ב>ג" both only have the greater than character (>) in them, but, if you are reading this somewhere that follows the Unicode bidirectional algorithm, the ones between Latin letters point to the right and those between Hebrew letters point to the left.
The algorithms are complicated [10], and when they don't work, there are explicit characters that indicate things like "text should flow left to right from here". The explicit formatting characters have the most potential to cause trouble for search because they are usually invisible, and you can pick one up without realizing it. For example, when copying an Arabic word from a page in English, or a French word from a page in Hebrew, the word that is "the other way around" from the main text might have one of these marks at the beginning or end of it. Fortunately, we can usually identify them and strip them out.
Finally, there are some scripts that have been written in other interesting directions. Vertical text includes Chinese, Japanese, and Korean, [11] and Mongolian. [12]. Hanunó'o [13] and Ogham [14] were written bottom-to-top! My [Trey's] favorite "direction" is "boustrophedon," [15] which means "like an ox ploughs" and alternates left-to-right and right-to-left, and was used particularly in old manuscripts and inscriptions in may writing systems. Why jump from one side of the page to the other when you can just curve around where you are or flip to mirrored letters and keep going?!
[0] https://phabricator.wikimedia.org/T213931 [1] https://phabricator.wikimedia.org/T138958 [2] https://phabricator.wikimedia.org/T193701 [3] https://phabricator.wikimedia.org/T213105 [4] https://phabricator.wikimedia.org/T205111 [5] https://phabricator.wikimedia.org/T213745 [6] https://phabricator.wikimedia.org/T210592 [7] https://phabricator.wikimedia.org/T213150 [8] https://phabricator.wikimedia.org/T213212 [9] https://en.wikipedia.org/wiki/Right-to-left#List_of_RTL_scripts [10] https://www.w3.org/International/articles/inline-bidi-markup/uba-basics [11] https://en.wikipedia.org/wiki/Horizontal_and_vertical_writing_in_East_Asian_... [12] https://en.wikipedia.org/wiki/Mongolian_script [13] https://en.wikipedia.org/wiki/Hanun%C3%B3%27o_alphabet [14] https://en.wikipedia.org/wiki/Ogham [15] https://en.wikipedia.org/wiki/Boustrophedon
----
Subscribe to receive on-wiki (or opt-in email) notifications of the Discovery weekly update.
https://www.mediawiki.org/wiki/Newsletter:Discovery_Weekly
The archive of all past updates can be found on MediaWiki.org:
https://www.mediawiki.org/wiki/Discovery/Status_updates
Interested in getting involved? See tasks marked as "Easy" or "Volunteer needed" in Phabricator.
[1] https://phabricator.wikimedia.org/maniphest/query/qW51XhCCd8.7/#R [2] https://phabricator.wikimedia.org/maniphest/query/5KEPuEJh9TPS/#R
Yours, Chris Koerner (he/him) Community Relations Specialist Wikimedia Foundation