module Iuliia::Wikipedia

Overview

The Wikipedia module provides transliteration (Engine.translate) using the Wikipedia transliteration schema.

More information (in Russian)

Examples

Iuliia::Wikipedia.translate("Юлия, съешь ещё этих мягких французских булок из Йошкар-Олы, да выпей алтайского чаю")
# => "Yuliya, syesh yeshchyo etikh myagkikh frantsuzskikh bulok iz Yoshkar-Oly, da vypey altayskogo chayu"

Iuliia::Wikipedia.translate("Россия, город Йошкар-Ола, улица Яна Крастыня")
# => "Rossiya, gorod Yoshkar-Ola, ulitsa Yana Krastynya"

Iuliia::Wikipedia.translate("Ельцин")
# => "Yeltsin"

Iuliia::Wikipedia.translate("Раздольное")
# => "Razdolnoye"

Iuliia::Wikipedia.translate("Юрьев")
# => "Yuryev"

Iuliia::Wikipedia.translate("Белкин")
# => "Belkin"

Iuliia::Wikipedia.translate("Бийск")
# => "Biysk"

Iuliia::Wikipedia.translate("Подъярский")
# => "Podyarsky"

Iuliia::Wikipedia.translate("Мусийкъонгийкоте")
# => "Musiykyongiykote"

Iuliia::Wikipedia.translate("Давыдов")
# => "Davydov"

Iuliia::Wikipedia.translate("Усолье")
# => "Usolye"

Iuliia::Wikipedia.translate("Выхухоль")
# => "Vykhukhol"

Iuliia::Wikipedia.translate("Дальнегорск")
# => "Dalnegorsk"

Iuliia::Wikipedia.translate("Ильинский")
# => "Ilyinsky"

Iuliia::Wikipedia.translate("Красный")
# => "Krasny"

Iuliia::Wikipedia.translate("Великий")
# => "Veliky"

Iuliia::Wikipedia.translate("Набережные Челны")
# => "Naberezhnye Chelny"

Included Modules

Extended Modules

Defined in:

iuliia/schemas/wikipedia.cr

Instance Method Summary

Instance methods inherited from module Iuliia::Engine

description : String description, name : String name, translate(string : String) : String translate

Instance Method Detail

def description : String #

Returns the transliteration schema description.


[View source]
def name : String #

Returns the transliteration schema name.


[View source]