module Mapping

Defined in:

utility/mapping.cr

Constant Summary

MAP_AVIAT_TO_AWIAT = ->(input : Word) do input.replace(AVIAT_TO_AWIAT, "\\1wiat") end
MAP_BRACKETS_TO_STAR_TRAILS = ->(input : Word) do (input.replace(BRACKETS_TO_STARTRAILS_FORE, "。・:*:・゚★,。・:*:・゚☆")).replace(BRACKETS_TO_STARTRAILS_REAR, "☆゚・:*:・。,★゚・:*:・。") end
MAP_CONSONANT_R_TO_CONSONANT_W = ->(input : Word) do input.replace(CONSONANT_R_TO_CONSONANT_W, "\\1w") end
MAP_DEAD_TO_DED = ->(input : Word) do (input.replace(DEAD_TO_DED_UPPER, "Ded")).replace(DEAD_TO_DED_LOWER, "ded") end
MAP_DEDICAT_TO_DEDITAT = ->(input : Word) do input.replace(DEDICAT_TO_DEDITAT, "\\1editat") end
MAP_EW_TO_UWU = ->(input : Word) do input.replace(EW_TO_UWU, "uwu") end
MAP_FEEL_TO_FELL = ->(input : Word) do input.replace(FEEL_TO_FELL, "\\1ell") end
MAP_FI_TO_FWI = ->(input : Word) do (input.replace(FI_TO_FWI_LOWER, "\\1wi")).replace(FI_TO_FWI_UPPER, "FWI") end
MAP_FRIGHTENED_TO_FRIGTEN = ->(input : Word) do input.replace(FRIGHTENED_TO_FRIGTEN, "\\1rigten") end
MAP_FUC_TO_FWUC = ->(input : Word) do input.replace(FUC_TO_FWUC, "\\1wuc") end
MAP_GREAT_TO_GWATE = ->(input : Word) do input.replace(GREAT_TO_GWATE, "\\1wate") end
MAP_HAHA_TO_HEHE_XD = ->(input : Word) do input.replace(HAHA_TO_HEHE_XD, "hehe xD") end
MAP_HEY_TO_HAY = ->(input : Word) do input.replace(HEY_TO_HAY, "\\1ay") end
MAP_L_OR_R_O_TO_WO = ->(input : Word) do (input.replace(LORR_O_TO_WO_LOWER, "wo")).replace(LORR_O_TO_WO_UPPER, "W\\1") end
MAP_LE_TO_WAL = ->(input : Word) do input.replace(LE_TO_WAL, "wal") end
MAP_LL_TO_WW = ->(input : Word) do input.replace(LL_TO_WW, "ww") end
MAP_LY_TO_WY = ->(input : Word) do (input.replace(LY_TO_WY_LOWER, "wy")).replace(LY_TO_WY_UPPER, "Wy") end
MAP_ME_TO_MWE = ->(input : Word) do (input.replace(ME_TO_MWE_UPPER, "Mwe")).replace(ME_TO_MWE_LOWER, "mwe") end
MAP_MEM_TO_MWEM = ->(input : Word) do (input.replace(MEM_TO_MWEM_UPPER, "mwem")).replace(MEM_TO_MWEM_LOWER, "Mwem") end
MAP_MEME_TO_MEM = ->(input : Word) do (input.replace(MEME_TO_MEM_FIRST, "mem")).replace(MEME_TO_MEM_SECOND, "Mem") end
MAP_MOM_TO_MWOM = ->(input : Word) do input.replace(MOM_TO_MWOM, "\\1wom") end
MAP_N_VOWEL_T_TO_ND = ->(input : Word) do input.replace(N_VOWEL_T_TO_ND, "nd") end
MAP_N_VOWEL_TO_NY = ->(input : Word) do ((input.replace(N_VOWEL_TO_NY_FIRST, "ny\\1")).replace(N_VOWEL_TO_NY_SECOND, "Ny\\1")).replace(N_VOWEL_TO_NY_THIRD, "NY\\1") end
MAP_NR_TO_NW = ->(input : Word) do (input.replace(NR_TO_NW_LOWER, "\\1w")).replace(NR_TO_NW_UPPER, "NW") end
MAP_O_TO_OWO = ->(input : Word) do rng = Random.new replacement = (rng.rand(2)) > 0 ? "owo" : "o" input.replace(O_TO_OWO, replacement) end
MAP_OL_TO_OWL = ->(input : Word) do (input.replace(OL_TO_OWL_LOWER, "\\1wl")).replace(OL_TO_OWL_UPPER, "OWL") end
MAP_OLD_TO_OWLD = ->(input : Word) do (input.replace(OLD_TO_OWLD_LOWER, "\\1wld")).replace(OLD_TO_OWLD_UPPER, "OWLD") end
MAP_OVE_TO_UV = ->(input : Word) do (input.replace(OVE_TO_UV_LOWER, "uv")).replace(OVE_TO_UV_UPPER, "UV") end
MAP_OVER_TO_OWOR = ->(input : Word) do input.replace(OVER_TO_OWOR, "\\1wor") end
MAP_PERIOD_COMMA_EXCLAMATION_SEMICOLON_TO_KAOMOJIS = ->(input : Word) do rng = Random.new (input.replace_with_func_single(PERIOD_COMMA_EXCLAMATION_SEMICOLON_TO_KAOMOJIS_FIRST, -> do FACES[rng.rand(FACES.size)] end)).replace_with_func_single(PERIOD_COMMA_EXCLAMATION_SEMICOLON_TO_KAOMOJIS_SECOND, -> do FACES[rng.rand(FACES.size)] end) end
MAP_PLE_TO_PWE = ->(input : Word) do input.replace(PLE_TO_PWE, "\\1we") end
MAP_POI_TO_PWOI = ->(input : Word) do input.replace(POI_TO_PWOI, "\\1woi") end
MAP_R_OR_L_TO_W = ->(input : Word) do (input.replace(RORL_TO_W_LOWER, "w")).replace(RORL_TO_W_UPPER, "W") end
MAP_READ_TO_WEAD = ->(input : Word) do (input.replace(READ_TO_WEAD_UPPER, "Wead")).replace(READ_TO_WEAD_LOWER, "wead") end
MAP_REMEMBER_TO_REMBER = ->(input : Word) do input.replace(REMEMBER_TO_REMBER, "\\1ember") end
MAP_RY_TO_WWY = ->(input : Word) do input.replace(RY_TO_WWY, "wwy") end
MAP_SPECIFIC_CONSONANTS_LE_TO_LETTER_AND_WAL = ->(input : Word) do input.replace(SPECIFIC_CONSONANTS_LE_TO_LETTER_AND_WAL, "\\1wal") end
MAP_SPECIFIC_CONSONANTS_O_TO_LETTER_AND_WO = ->(input : Word) do (input.replace(SPECIFIC_CONSONANTS_O_TO_LETTER_AND_WO_LOWER, "\\1wo")).replace_with_func_multiple(SPECIFIC_CONSONANTS_O_TO_LETTER_AND_WO_UPPER, ->(s1 : String, s2 : String) do msg = s1 msg = msg + (s2.upcase == s2 ? "W" : "w") msg = msg + s2 msg end) end
MAP_TH_TO_F = ->(input : Word) do (input.replace(TH_TO_F_LOWER, "f")).replace(TH_TO_F_UPPER, "F") end
MAP_THAT_TO_DAT = ->(input : Word) do (input.replace(THAT_TO_DAT_LOWER, "dat")).replace(THAT_TO_DAT_UPPER, "Dat") end
MAP_THE_TO_TEH = ->(input : Word) do input.replace(THE_TO_TEH, "\\1eh") end
MAP_TIME_TO_TIM = ->(input : Word) do input.replace(TIME_TO_TIM, "\\1im") end
MAP_V_OR_W_LE_TO_WAL = ->(input : Word) do input.replace(VORW_LE_TO_WAL, "wal") end
MAP_VE_TO_WE = ->(input : Word) do (input.replace(VE_TO_WE_LOWER, "we")).replace(VE_TO_WE_UPPER, "We") end
MAP_VER_TO_WER = ->(input : Word) do input.replace(VER_TO_WER, "wer") end
MAP_VOWEL_OR_R_EXCEPT_O_L_TO_WL = ->(input : Word) do (input.replace(VOWEL_OR_R_EXCEPT_O_L_TO_WL_LOWER, "wl")).replace(VOWEL_OR_R_EXCEPT_O_L_TO_WL_UPPER, "W\\1") end
MAP_WHEN_TO_WEN = ->(input : Word) do input.replace(WHEN_TO_WEN, "\\1en") end
MAP_WORSE_TO_WOSE = ->(input : Word) do input.replace(WORSE_TO_WOSE, "\\1ose") end
MAP_YOU_TO_U = ->(input : Word) do (input.replace(YOU_TO_U_UPPER, "U")).replace(YOU_TO_U_LOWER, "u") end
UNMAP_NYWO_TO_NYO = ->(input : Word) do input.replace(NYWO_TO_NYO, "\\1yo") end