Blog (en anglais)Cet article n’est disponible qu’en anglais.

How Smart Keyboard got better at telling Russian and Ukrainian apart

You’re writing in Ukrainian and spot ъх in your message. You pressed the keys for їх, but the keyboard was still set to Russian. Smart Keyboard can now make that correction. Short words like this can be tricky, because a few letters on their own can also look like the start of a different word.

What changed

  • Sometimes part of what you type matches a word found only in the other language’s dictionary. Smart Keyboard now checks the words around it before making a change. If they give it no reason to switch languages, it leaves your typing as it is.
  • The keys you used to type ъх can produce punctuation in another layout. If there’s an exact match for a common word in the other Cyrillic layout, Smart Keyboard picks the word.
  • Type вночы when you mean вночі. To fix a typo within a Ukrainian word, Smart Keyboard weighs the clues from both layouts. That helps it recognise a Ukrainian word with a typo even when you typed it on the Russian layout.
  • When there are several possible corrections, Smart Keyboard considers how the typo might have happened. It picks ground over found for gound and fixes businesss to business. We drew on studies of how people type to weigh slips to a neighbouring key, missing or extra letters, and letters typed in the wrong order.
  • When you type mixed-case code, brackets stay as you typed them.

In a check with 7,450 real typos, Smart Keyboard made 43 more Russian corrections and 66 more Ukrainian corrections. The number of wrong replacements stayed the same. On 17,000 real typos from open text collections, it made 20 more correct fixes and 20 fewer replacements with words from the other language.

How to try it

Open Smart Keyboard → Corrections. The changes apply automatically. Try ъх in a Ukrainian sentence with the Russian layout selected, or repeat the example with вночы. For more on what gets corrected when you type, see the Smart Keyboard page.

Where it still gets things wrong

In real Ukrainian sentences containing errors, about 0.6% of words still get changed to Russian. For example, “проекті” can become “проекты”. We’re working on it. When both forms are valid, as with “готові” and “готовы”, the choice still depends on the words around them.

Autres articles du blog