(self, word)
return word
Transliterate a Russian word into the Roman alphabet.

        A Russian word whose letters consist of the Cyrillic
        alphabet are transliterated into the Roman alphabet
        in order to ease the forthcoming stemming process.

        :param word: The word that is transliterated.
        :type word: unicode
        :return: the transliterated word.
        :rtype: unicode
        :note: This helper method is invoked by the stem method of the subclass
               RussianStemmer. It is not to be invoked directly!
Transliterate a Russian word into the Roman alphabet.
Transliterate a Russian word into the Roman alphabet .
def __cyrillic_to_roman(self, word):
        """
        Transliterate a Russian word into the Roman alphabet.

        A Russian word whose letters consist of the Cyrillic
        alphabet are transliterated into the Roman alphabet
        in order to ease the forthcoming stemming process.

        :param word: The word that is transliterated.
        :type word: unicode
        :return: the transliterated word.
        :rtype: unicode
        :note: This helper method is invoked by the stem method of the subclass
               RussianStemmer. It is not to be invoked directly!

        """
        word = (word.replace(u("\u0410"), "a").replace(u("\u0430"), "a")
                    .replace(u("\u0411"), "b").replace(u("\u0431"), "b")
                    .replace(u("\u0412"), "v").replace(u("\u0432"), "v")
                    .replace(u("\u0413"), "g").replace(u("\u0433"), "g")
                    .replace(u("\u0414"), "d").replace(u("\u0434"), "d")
                    .replace(u("\u0415"), "e").replace(u("\u0435"), "e")
                    .replace(u("\u0401"), "e").replace(u("\u0451"), "e")
                    .replace(u("\u0416"), "zh").replace(u("\u0436"), "zh")
                    .replace(u("\u0417"), "z").replace(u("\u0437"), "z")
                    .replace(u("\u0418"), "i").replace(u("\u0438"), "i")
                    .replace(u("\u0419"), "i`").replace(u("\u0439"), "i`")
                    .replace(u("\u041A"), "k").replace(u("\u043A"), "k")
                    .replace(u("\u041B"), "l").replace(u("\u043B"), "l")
                    .replace(u("\u041C"), "m").replace(u("\u043C"), "m")
                    .replace(u("\u041D"), "n").replace(u("\u043D"), "n")
                    .replace(u("\u041E"), "o").replace(u("\u043E"), "o")
                    .replace(u("\u041F"), "p").replace(u("\u043F"), "p")
                    .replace(u("\u0420"), "r").replace(u("\u0440"), "r")
                    .replace(u("\u0421"), "s").replace(u("\u0441"), "s")
                    .replace(u("\u0422"), "t").replace(u("\u0442"), "t")
                    .replace(u("\u0423"), "u").replace(u("\u0443"), "u")
                    .replace(u("\u0424"), "f").replace(u("\u0444"), "f")
                    .replace(u("\u0425"), "kh").replace(u("\u0445"), "kh")
                    .replace(u("\u0426"), "t^s").replace(u("\u0446"), "t^s")
                    .replace(u("\u0427"), "ch").replace(u("\u0447"), "ch")
                    .replace(u("\u0428"), "sh").replace(u("\u0448"), "sh")
                    .replace(u("\u0429"), "shch").replace(u("\u0449"), "shch")
                    .replace(u("\u042A"), "''").replace(u("\u044A"), "''")
                    .replace(u("\u042B"), "y").replace(u("\u044B"), "y")
                    .replace(u("\u042C"), "'").replace(u("\u044C"), "'")
                    .replace(u("\u042D"), "e`").replace(u("\u044D"), "e`")
                    .replace(u("\u042E"), "i^u").replace(u("\u044E"), "i^u")
                    .replace(u("\u042F"), "i^a").replace(u("\u044F"), "i^a"))
        return word
def __cyrillic_to_roman ( self , word ) : word = ( word . replace ( u ( "\u0410" ) , "a" ) . replace ( u ( "\u0430" ) , "a" ) . replace ( u ( "\u0411" ) , "b" ) . replace ( u ( "\u0431" ) , "b" ) . replace ( u ( "\u0412" ) , "v" ) . replace ( u ( "\u0432" ) , "v" ) . replace ( u ( "\u0413" ) , "g" ) . replace ( u ( "\u0433" ) , "g" ) . replace ( u ( "\u0414" ) , "d" ) . replace ( u ( "\u0434" ) , "d" ) . replace ( u ( "\u0415" ) , "e" ) . replace ( u ( "\u0435" ) , "e" ) . replace ( u ( "\u0401" ) , "e" ) . replace ( u ( "\u0451" ) , "e" ) . replace ( u ( "\u0416" ) , "zh" ) . replace ( u ( "\u0436" ) , "zh" ) . replace ( u ( "\u0417" ) , "z" ) . replace ( u ( "\u0437" ) , "z" ) . replace ( u ( "\u0418" ) , "i" ) . replace ( u ( "\u0438" ) , "i" ) . replace ( u ( "\u0419" ) , "i`" ) . replace ( u ( "\u0439" ) , "i`" ) . replace ( u ( "\u041A" ) , "k" ) . replace ( u ( "\u043A" ) , "k" ) . replace ( u ( "\u041B" ) , "l" ) . replace ( u ( "\u043B" ) , "l" ) . replace ( u ( "\u041C" ) , "m" ) . replace ( u ( "\u043C" ) , "m" ) . replace ( u ( "\u041D" ) , "n" ) . replace ( u ( "\u043D" ) , "n" ) . replace ( u ( "\u041E" ) , "o" ) . replace ( u ( "\u043E" ) , "o" ) . replace ( u ( "\u041F" ) , "p" ) . replace ( u ( "\u043F" ) , "p" ) . replace ( u ( "\u0420" ) , "r" ) . replace ( u ( "\u0440" ) , "r" ) . replace ( u ( "\u0421" ) , "s" ) . replace ( u ( "\u0441" ) , "s" ) . replace ( u ( "\u0422" ) , "t" ) . replace ( u ( "\u0442" ) , "t" ) . replace ( u ( "\u0423" ) , "u" ) . replace ( u ( "\u0443" ) , "u" ) . replace ( u ( "\u0424" ) , "f" ) . replace ( u ( "\u0444" ) , "f" ) . replace ( u ( "\u0425" ) , "kh" ) . replace ( u ( "\u0445" ) , "kh" ) . replace ( u ( "\u0426" ) , "t^s" ) . replace ( u ( "\u0446" ) , "t^s" ) . replace ( u ( "\u0427" ) , "ch" ) . replace ( u ( "\u0447" ) , "ch" ) . replace ( u ( "\u0428" ) , "sh" ) . replace ( u ( "\u0448" ) , "sh" ) . replace ( u ( "\u0429" ) , "shch" ) . replace ( u ( "\u0449" ) , "shch" ) . replace ( u ( "\u042A" ) , "''" ) . replace ( u ( "\u044A" ) , "''" ) . replace ( u ( "\u042B" ) , "y" ) . replace ( u ( "\u044B" ) , "y" ) . replace ( u ( "\u042C" ) , "'" ) . replace ( u ( "\u044C" ) , "'" ) . replace ( u ( "\u042D" ) , "e`" ) . replace ( u ( "\u044D" ) , "e`" ) . replace ( u ( "\u042E" ) , "i^u" ) . replace ( u ( "\u044E" ) , "i^u" ) . replace ( u ( "\u042F" ) , "i^a" ) . replace ( u ( "\u044F" ) , "i^a" ) ) return word