Skip to content

Instantly share code, notes, and snippets.

@AngryLoki
Created April 10, 2016 16:41
Show Gist options
  • Save AngryLoki/f34b1be5ab93204fb5f02586dacc9c8d to your computer and use it in GitHub Desktop.
Save AngryLoki/f34b1be5ab93204fb5f02586dacc9c8d to your computer and use it in GitHub Desktop.
Polivanov transliteration function for Wikidata
/*
* Distributed under the terms of the MIT license.
* http://www.opensource.org/licenses/mit-license.html
*
* This notice shall be included in all copies or substantial portions of the Software.
*/
function trans(car) {
car = car.replace(/一/g, "いち ");
car = car.replace(/七/g, "しち ");
car = car.replace(/不/g, "ふ ");
car = car.replace(/世/g, "よ ");
car = car.replace(/丘/g, "おか ");
car = car.replace(/両/g, "りょう ");
car = car.replace(/串/g, "くし ");
car = car.replace(/丸/g, "まる ");
car = car.replace(/丹/g, "に ");
car = car.replace(/乗/g, "じょう ");
car = car.replace(/乱/g, "らん ");
car = car.replace(/乳/g, "ちち ");
car = car.replace(/了/g, "りょう ");
car = car.replace(/予/g, "よ ");
car = car.replace(/事/g, "こと ");
car = car.replace(/二/g, "に ");
car = car.replace(/五/g, "ご ");
car = car.replace(/井/g, "い ");
car = car.replace(/亜/g, "あ ");
car = car.replace(/交/g, "こもごも ");
car = car.replace(/仕/g, "し ");
car = car.replace(/令/g, "れい ");
car = car.replace(/仲/g, "なか ");
car = car.replace(/任/g, "にん ");
car = car.replace(/企/g, "きくこ ");
car = car.replace(/伏/g, "ふく ");
car = car.replace(/伐/g, "いさお ");
car = car.replace(/伯/g, "はく ");
car = car.replace(/伴/g, "とも ");
car = car.replace(/伺/g, "うかがい ");
car = car.replace(/似/g, "に ");
car = car.replace(/但/g, "ただ ");
car = car.replace(/位/g, "くらい ");
car = car.replace(/低/g, "てい ");
car = car.replace(/住/g, "じゅう ");
car = car.replace(/余/g, "よ ");
car = car.replace(/作/g, "さく ");
car = car.replace(/佳/g, "か ");
car = car.replace(/使/g, "つかさ ");
car = car.replace(/侍/g, "さむらい ");
car = car.replace(/価/g, "あたい ");
car = car.replace(/侮/g, "ぶ ");
car = car.replace(/侯/g, "こう ");
car = car.replace(/係/g, "かかり ");
car = car.replace(/俗/g, "ぞく ");
car = car.replace(/俸/g, "ほう ");
car = car.replace(/倍/g, "ばい ");
car = car.replace(/倹/g, "けん ");
car = car.replace(/偉/g, "い ");
car = car.replace(/偏/g, "へん ");
car = car.replace(/傘/g, "かさ ");
car = car.replace(/債/g, "さい ");
car = car.replace(/像/g, "ぞう ");
car = car.replace(/僧/g, "そう ");
car = car.replace(/儀/g, "ぎ ");
car = car.replace(/億/g, "おく ");
car = car.replace(/儒/g, "じゅ ");
car = car.replace(/元/g, "もと ");
car = car.replace(/兄/g, "あに ");
car = car.replace(/光/g, "ひかり ");
car = car.replace(/免/g, "めん ");
car = car.replace(/党/g, "とう ");
car = car.replace(/全/g, "ぜん ");
car = car.replace(/兵/g, "つわもの ");
car = car.replace(/具/g, "ぐ ");
car = car.replace(/兼/g, "けん ");
car = car.replace(/冊/g, "さつ ");
car = car.replace(/再/g, "さい ");
car = car.replace(/冗/g, "じょう ");
car = car.replace(/写/g, "つぎや ");
car = car.replace(/冬/g, "ふゆ ");
car = car.replace(/准/g, "じゅん ");
car = car.replace(/凍/g, "こおる ");
car = car.replace(/処/g, "ところ ");
car = car.replace(/凶/g, "きょう ");
car = car.replace(/凸/g, "でこ ");
car = car.replace(/凹/g, "おう ");
car = car.replace(/出/g, "で ");
car = car.replace(/刈/g, "かり ");
car = car.replace(/刑/g, "けい ");
car = car.replace(/列/g, "れつ ");
car = car.replace(/初/g, "はつ ");
car = car.replace(/別/g, "べつ ");
car = car.replace(/利/g, "り ");
car = car.replace(/到/g, "いたる ");
car = car.replace(/制/g, "せい ");
car = car.replace(/刷/g, "すり ");
car = car.replace(/券/g, "けん ");
car = car.replace(/削/g, "さく ");
car = car.replace(/剛/g, "ごう ");
car = car.replace(/剤/g, "ざい ");
car = car.replace(/劇/g, "げき ");
car = car.replace(/功/g, "こう ");
car = car.replace(/加/g, "か ");
car = car.replace(/努/g, "ゆめ ");
car = car.replace(/効/g, "かい ");
car = car.replace(/勇/g, "ゆう ");
car = car.replace(/動/g, "どう ");
car = car.replace(/勘/g, "かん ");
car = car.replace(/勲/g, "いさお ");
car = car.replace(/勺/g, "しゃく ");
car = car.replace(/匁/g, "もんめ ");
car = car.replace(/包/g, "つつみ ");
car = car.replace(/化/g, "か ");
car = car.replace(/区/g, "く ");
car = car.replace(/医/g, "い ");
car = car.replace(/匿/g, "とく ");
car = car.replace(/升/g, "ます ");
car = car.replace(/午/g, "うま ");
car = car.replace(/半/g, "はん ");
car = car.replace(/卒/g, "そつ ");
car = car.replace(/卓/g, "たく ");
car = car.replace(/協/g, "きょう ");
car = car.replace(/単/g, "ひとえ ");
car = car.replace(/占/g, "うら ");
car = car.replace(/危/g, "き ");
car = car.replace(/即/g, "そく ");
car = car.replace(/卵/g, "たまご ");
car = car.replace(/卸/g, "おろし ");
car = car.replace(/厄/g, "やく ");
car = car.replace(/厘/g, "りん ");
car = car.replace(/厳/g, "げん ");
car = car.replace(/参/g, "さん ");
car = car.replace(/又/g, "また ");
car = car.replace(/友/g, "とも ");
car = car.replace(/双/g, "そう ");
car = car.replace(/受/g, "じゅ ");
car = car.replace(/叙/g, "のぶ ");
car = car.replace(/口/g, "くち ");
car = car.replace(/可/g, "か ");
car = car.replace(/台/g, "だい ");
car = car.replace(/右/g, "みぎ ");
car = car.replace(/号/g, "ごう ");
car = car.replace(/司/g, "し ");
car = car.replace(/合/g, "ごう ");
car = car.replace(/吉/g, "きち ");
car = car.replace(/同/g, "どう ");
car = car.replace(/后/g, "きさい ");
car = car.replace(/吏/g, "り ");
car = car.replace(/吐/g, "はきさき ");
car = car.replace(/味/g, "あじ ");
car = car.replace(/呼/g, "こ ");
car = car.replace(/和/g, "わ ");
car = car.replace(/哀/g, "あい ");
car = car.replace(/員/g, "いん ");
car = car.replace(/唇/g, "くちびる ");
car = car.replace(/唐/g, "とう ");
car = car.replace(/唯/g, "ただ ");
car = car.replace(/商/g, "しょう ");
car = car.replace(/問/g, "もん ");
car = car.replace(/善/g, "ぜん ");
car = car.replace(/喝/g, "かつ ");
car = car.replace(/喪/g, "も ");
car = car.replace(/嘆/g, "たん ");
car = car.replace(/器/g, "うつわ ");
car = car.replace(/回/g, "かい ");
car = car.replace(/因/g, "いん ");
car = car.replace(/団/g, "だん ");
car = car.replace(/図/g, "ず ");
car = car.replace(/国/g, "くに ");
car = car.replace(/圏/g, "けん ");
car = car.replace(/土/g, "つち ");
car = car.replace(/圧/g, "あつ ");
car = car.replace(/在/g, "ざい ");
car = car.replace(/地/g, "ち ");
car = car.replace(/坂/g, "さか ");
car = car.replace(/坊/g, "ぼう ");
car = car.replace(/坑/g, "こう ");
car = car.replace(/坪/g, "つぼ ");
car = car.replace(/垂/g, "しで ");
car = car.replace(/型/g, "かた ");
car = car.replace(/垣/g, "かき ");
car = car.replace(/埋/g, "うずみ ");
car = car.replace(/城/g, "しろ ");
car = car.replace(/域/g, "いき ");
car = car.replace(/執/g, "しゅう ");
car = car.replace(/培/g, "ばい ");
car = car.replace(/基/g, "き ");
car = car.replace(/堀/g, "ほり ");
car = car.replace(/堂/g, "どう ");
car = car.replace(/堕/g, "たくお ");
car = car.replace(/堤/g, "つつみ ");
car = car.replace(/報/g, "ほう ");
car = car.replace(/場/g, "じょう ");
car = car.replace(/塀/g, "へい ");
car = car.replace(/塁/g, "るい ");
car = car.replace(/塊/g, "かたまり ");
car = car.replace(/塔/g, "とう ");
car = car.replace(/塗/g, "ぬり ");
car = car.replace(/塚/g, "つか ");
car = car.replace(/塾/g, "じゅく ");
car = car.replace(/境/g, "さかい ");
car = car.replace(/墓/g, "はか ");
car = car.replace(/増/g, "ぞう ");
car = car.replace(/墨/g, "すみ ");
car = car.replace(/壁/g, "かべ ");
car = car.replace(/壇/g, "だん ");
car = car.replace(/壊/g, "かい ");
car = car.replace(/士/g, "し ");
car = car.replace(/壮/g, "そう ");
car = car.replace(/声/g, "こえ ");
car = car.replace(/壱/g, "いち ");
car = car.replace(/変/g, "へん ");
car = car.replace(/夏/g, "なつ ");
car = car.replace(/夕/g, "ゆう ");
car = car.replace(/多/g, "た ");
car = car.replace(/夜/g, "よる ");
car = car.replace(/夢/g, "ゆめ ");
car = car.replace(/大/g, "だい ");
car = car.replace(/夫/g, "おっと ");
car = car.replace(/央/g, "おう ");
car = car.replace(/奇/g, "き ");
car = car.replace(/奥/g, "おく ");
car = car.replace(/好/g, "こう ");
car = car.replace(/如/g, "にょ ");
car = car.replace(/妙/g, "みょう ");
car = car.replace(/妹/g, "いもうと ");
car = car.replace(/妻/g, "つま ");
car = car.replace(/姉/g, "あね ");
car = car.replace(/姓/g, "せい ");
car = car.replace(/姫/g, "ひめ ");
car = car.replace(/姿/g, "すがた ");
car = car.replace(/婆/g, "ばば ");
car = car.replace(/婦/g, "ふ ");
car = car.replace(/婿/g, "むこ ");
car = car.replace(/媒/g, "なかだち ");
car = car.replace(/嫁/g, "よめ ");
car = car.replace(/嫌/g, "いや ");
car = car.replace(/嬢/g, "じょう ");
car = car.replace(/孔/g, "あな ");
car = car.replace(/孝/g, "きょう ");
car = car.replace(/季/g, "き ");
car = car.replace(/孤/g, "みなしご ");
car = car.replace(/学/g, "がく ");
car = car.replace(/孫/g, "まご ");
car = car.replace(/宅/g, "たく ");
car = car.replace(/宇/g, "う ");
car = car.replace(/守/g, "かみ ");
car = car.replace(/安/g, "やす ");
car = car.replace(/完/g, "かん ");
car = car.replace(/宗/g, "しゅう ");
car = car.replace(/官/g, "かん ");
car = car.replace(/宙/g, "ちゅう ");
car = car.replace(/宝/g, "たから ");
car = car.replace(/客/g, "きゃく ");
car = car.replace(/宮/g, "きゅう ");
car = car.replace(/害/g, "がい ");
car = car.replace(/宴/g, "うたげ ");
car = car.replace(/宵/g, "よい ");
car = car.replace(/容/g, "かたち ");
car = car.replace(/宿/g, "やど ");
car = car.replace(/寂/g, "さび ");
car = car.replace(/密/g, "みつ ");
car = car.replace(/富/g, "とみ ");
car = car.replace(/寒/g, "かん ");
car = car.replace(/寛/g, "かん ");
car = car.replace(/寝/g, "ね ");
car = car.replace(/察/g, "さつ ");
car = car.replace(/寡/g, "やもめ ");
car = car.replace(/寧/g, "むしろ ");
car = car.replace(/審/g, "しん ");
car = car.replace(/寮/g, "りょう ");
car = car.replace(/寸/g, "すん ");
car = car.replace(/寺/g, "てら ");
car = car.replace(/寿/g, "ことぶき ");
car = car.replace(/封/g, "ふう ");
car = car.replace(/将/g, "しょう ");
car = car.replace(/尉/g, "じょう ");
car = car.replace(/尋/g, "じん ");
car = car.replace(/導/g, "しるべ ");
car = car.replace(/小/g, "お ");
car = car.replace(/少/g, "しょう ");
car = car.replace(/尚/g, "なお ");
car = car.replace(/尺/g, "しゃく ");
car = car.replace(/尼/g, "あま ");
car = car.replace(/尽/g, "じん ");
car = car.replace(/尾/g, "お ");
car = car.replace(/尿/g, "にょう ");
car = car.replace(/居/g, "い ");
car = car.replace(/屈/g, "くつ ");
car = car.replace(/届/g, "とどけ ");
car = car.replace(/屋/g, "や ");
car = car.replace(/展/g, "てん ");
car = car.replace(/属/g, "ぞく ");
car = car.replace(/層/g, "そう ");
car = car.replace(/履/g, "くつ ");
car = car.replace(/山/g, "やま ");
car = car.replace(/岐/g, "ちまた ");
car = car.replace(/岩/g, "いわ ");
car = car.replace(/岬/g, "みさき ");
car = car.replace(/岳/g, "たけ ");
car = car.replace(/岸/g, "きし ");
car = car.replace(/峠/g, "とうげ ");
car = car.replace(/峰/g, "みね ");
car = car.replace(/崎/g, "さき ");
car = car.replace(/川/g, "かわ ");
car = car.replace(/巣/g, "す ");
car = car.replace(/工/g, "こう ");
car = car.replace(/左/g, "ひだり ");
car = car.replace(/差/g, "さ ");
car = car.replace(/布/g, "ぬの ");
car = car.replace(/帆/g, "ほ ");
car = car.replace(/希/g, "まれ ");
car = car.replace(/帝/g, "みかど ");
car = car.replace(/師/g, "し ");
car = car.replace(/席/g, "せき ");
car = car.replace(/帰/g, "き ");
car = car.replace(/帽/g, "ぼう ");
car = car.replace(/幅/g, "はば ");
car = car.replace(/幕/g, "まく ");
car = car.replace(/幣/g, "ぬさ ");
car = car.replace(/干/g, "ほし ");
car = car.replace(/平/g, "ひら ");
car = car.replace(/幸/g, "さち ");
car = car.replace(/幻/g, "まぼろし ");
car = car.replace(/幼/g, "いと ");
car = car.replace(/庁/g, "ちょう ");
car = car.replace(/底/g, "そこ ");
car = car.replace(/府/g, "ふ ");
car = car.replace(/座/g, "ざ ");
car = car.replace(/庫/g, "くら ");
car = car.replace(/庭/g, "にわ ");
car = car.replace(/廉/g, "かど ");
car = car.replace(/建/g, "たてる ");
car = car.replace(/弁/g, "べん ");
car = car.replace(/弊/g, "へい ");
car = car.replace(/式/g, "しき ");
car = car.replace(/弐/g, "に ");
car = car.replace(/弓/g, "ゆみ ");
car = car.replace(/引/g, "ひき ");
car = car.replace(/弧/g, "こ ");
car = car.replace(/張/g, "ちょう ");
car = car.replace(/強/g, "きょう ");
car = car.replace(/当/g, "とう ");
car = car.replace(/形/g, "かたち ");
car = car.replace(/彫/g, "ほり ");
car = car.replace(/影/g, "かげ ");
car = car.replace(/径/g, "けい ");
car = car.replace(/律/g, "りつ ");
car = car.replace(/従/g, "じゅ ");
car = car.replace(/得/g, "とく ");
car = car.replace(/復/g, "また ");
car = car.replace(/循/g, "じゅん ");
car = car.replace(/微/g, "び ");
car = car.replace(/徳/g, "とく ");
car = car.replace(/徴/g, "しるし ");
car = car.replace(/必/g, "あきら ");
car = car.replace(/忌/g, "いみ ");
car = car.replace(/忍/g, "しのぶ ");
car = car.replace(/志/g, "こころざし ");
car = car.replace(/忠/g, "ちゅう ");
car = car.replace(/念/g, "ねん ");
car = car.replace(/怒/g, "いかり ");
car = car.replace(/怖/g, "こわ ");
car = car.replace(/急/g, "きゅう ");
car = car.replace(/怪/g, "かい ");
car = car.replace(/恋/g, "こい ");
car = car.replace(/恐/g, "かしく ");
car = car.replace(/恥/g, "はじ ");
car = car.replace(/恩/g, "おん ");
car = car.replace(/息/g, "いき ");
car = car.replace(/悦/g, "えつ ");
car = car.replace(/悩/g, "うすね ");
car = car.replace(/悲/g, "ひ ");
car = car.replace(/情/g, "じょう ");
car = car.replace(/惜/g, "すみのり ");
car = car.replace(/惨/g, "さん ");
car = car.replace(/想/g, "そう ");
car = car.replace(/意/g, "い ");
car = car.replace(/愚/g, "ぐ ");
car = car.replace(/愛/g, "あい ");
car = car.replace(/感/g, "かん ");
car = car.replace(/態/g, "たい ");
car = car.replace(/慨/g, "がい ");
car = car.replace(/憩/g, "いこい ");
car = car.replace(/懐/g, "ふところ ");
car = car.replace(/戒/g, "いんごと ");
car = car.replace(/戦/g, "いくさ ");
car = car.replace(/房/g, "ふさ ");
car = car.replace(/所/g, "しょ ");
car = car.replace(/扇/g, "おうぎ ");
car = car.replace(/扉/g, "とびら ");
car = car.replace(/手/g, "て ");
car = car.replace(/才/g, "さい ");
car = car.replace(/払/g, "はらい ");
car = car.replace(/扱/g, "あつか ");
car = car.replace(/技/g, "わざ ");
car = car.replace(/抄/g, "しょう ");
car = car.replace(/把/g, "わ ");
car = car.replace(/抑/g, "そもそも ");
car = car.replace(/抗/g, "こう ");
car = car.replace(/折/g, "おり ");
car = car.replace(/披/g, "ひらき ");
car = car.replace(/抱/g, "かかえ ");
car = car.replace(/拍/g, "はく ");
car = car.replace(/拝/g, "はい ");
car = car.replace(/拠/g, "よりどころ ");
car = car.replace(/拾/g, "じゅう ");
car = car.replace(/指/g, "ゆび ");
car = car.replace(/挑/g, "いどむ ");
car = car.replace(/挙/g, "あかる ");
car = car.replace(/挟/g, "きょう ");
car = car.replace(/据/g, "しがらみ ");
car = car.replace(/掃/g, "そう ");
car = car.replace(/掛/g, "かけ ");
car = car.replace(/提/g, "ひさげ ");
car = car.replace(/揚/g, "あげ ");
car = car.replace(/握/g, "にぎり ");
car = car.replace(/援/g, "たすく ");
car = car.replace(/揺/g, "ゆり ");
car = car.replace(/損/g, "そん ");
car = car.replace(/携/g, "すがる ");
car = car.replace(/摩/g, "ま ");
car = car.replace(/撃/g, "げき ");
car = car.replace(/撤/g, "てつ ");
car = car.replace(/操/g, "みさお ");
car = car.replace(/改/g, "かい ");
car = car.replace(/放/g, "はなし ");
car = car.replace(/政/g, "まつりごと ");
car = car.replace(/散/g, "ばら ");
car = car.replace(/敬/g, "けい ");
car = car.replace(/敷/g, "しき ");
car = car.replace(/料/g, "りょう ");
car = car.replace(/斜/g, "はす ");
car = car.replace(/斤/g, "きん ");
car = car.replace(/断/g, "だん ");
car = car.replace(/新/g, "しん ");
car = car.replace(/旅/g, "たび ");
car = car.replace(/族/g, "ぞく ");
car = car.replace(/旗/g, "はた ");
car = car.replace(/既/g, "き ");
car = car.replace(/旧/g, "きゅう ");
car = car.replace(/早/g, "はや ");
car = car.replace(/昆/g, "こん ");
car = car.replace(/明/g, "さや ");
car = car.replace(/易/g, "えき ");
car = car.replace(/昔/g, "むかし ");
car = car.replace(/星/g, "ほし ");
car = car.replace(/春/g, "はる ");
car = car.replace(/昨/g, "さく ");
car = car.replace(/是/g, "これ ");
car = car.replace(/昼/g, "ひる ");
car = car.replace(/時/g, "とき ");
car = car.replace(/晩/g, "ばん ");
car = car.replace(/景/g, "けい ");
car = car.replace(/晴/g, "はれ ");
car = car.replace(/暁/g, "あかつき ");
car = car.replace(/暑/g, "あつ ");
car = car.replace(/暦/g, "こよみ ");
car = car.replace(/暮/g, "くれ ");
car = car.replace(/曇/g, "くもり ");
car = car.replace(/曲/g, "きょく ");
car = car.replace(/更/g, "こう ");
car = car.replace(/書/g, "しょ ");
car = car.replace(/最/g, "さい ");
car = car.replace(/有/g, "ゆう ");
car = car.replace(/服/g, "ふく ");
car = car.replace(/朕/g, "ちん ");
car = car.replace(/望/g, "ぼう ");
car = car.replace(/朝/g, "あさ ");
car = car.replace(/期/g, "き ");
car = car.replace(/木/g, "き ");
car = car.replace(/朱/g, "あけ ");
car = car.replace(/朴/g, "えのき ");
car = car.replace(/机/g, "つくえ ");
car = car.replace(/杉/g, "すぎ ");
car = car.replace(/材/g, "ざい ");
car = car.replace(/村/g, "むら ");
car = car.replace(/来/g, "らい ");
car = car.replace(/松/g, "まつ ");
car = car.replace(/板/g, "いた ");
car = car.replace(/林/g, "はやし ");
car = car.replace(/枚/g, "まい ");
car = car.replace(/果/g, "か ");
car = car.replace(/枝/g, "えだ ");
car = car.replace(/枠/g, "わく ");
car = car.replace(/枢/g, "くる ");
car = car.replace(/架/g, "か ");
car = car.replace(/染/g, "そめ ");
car = car.replace(/柔/g, "やわ ");
car = car.replace(/柱/g, "はしら ");
car = car.replace(/柳/g, "やなぎ ");
car = car.replace(/査/g, "さ ");
car = car.replace(/栄/g, "はえ ");
car = car.replace(/栓/g, "せん ");
car = car.replace(/校/g, "こう ");
car = car.replace(/株/g, "かぶ ");
car = car.replace(/核/g, "かく ");
car = car.replace(/根/g, "ね ");
car = car.replace(/格/g, "かく ");
car = car.replace(/栽/g, "さい ");
car = car.replace(/桃/g, "もも ");
car = car.replace(/案/g, "あん ");
car = car.replace(/桑/g, "くわ ");
car = car.replace(/桜/g, "さくら ");
car = car.replace(/桟/g, "えつり ");
car = car.replace(/梅/g, "うめ ");
car = car.replace(/棒/g, "ぼう ");
car = car.replace(/棚/g, "たな ");
car = car.replace(/森/g, "もり ");
car = car.replace(/棺/g, "かん ");
car = car.replace(/検/g, "けんざき ");
car = car.replace(/楼/g, "ろう ");
car = car.replace(/楽/g, "らく ");
car = car.replace(/概/g, "かいじ ");
car = car.replace(/構/g, "かじ ");
car = car.replace(/槽/g, "うけ ");
car = car.replace(/標/g, "しるし ");
car = car.replace(/模/g, "かたぎ ");
car = car.replace(/権/g, "けん ");
car = car.replace(/横/g, "よこ ");
car = car.replace(/樹/g, "き ");
car = car.replace(/欄/g, "らん ");
car = car.replace(/欠/g, "あくび ");
car = car.replace(/欲/g, "よく ");
car = car.replace(/款/g, "かん ");
car = car.replace(/歌/g, "うた ");
car = car.replace(/歓/g, "かん ");
car = car.replace(/武/g, "ぶ ");
car = car.replace(/歯/g, "は ");
car = car.replace(/歳/g, "さい ");
car = car.replace(/歴/g, "れき ");
car = car.replace(/死/g, "し ");
car = car.replace(/殊/g, "け ");
car = car.replace(/残/g, "ざん ");
car = car.replace(/殖/g, "しげる ");
car = car.replace(/段/g, "だん ");
car = car.replace(/殻/g, "から ");
car = car.replace(/母/g, "はは ");
car = car.replace(/毒/g, "どく ");
car = car.replace(/比/g, "ひ ");
car = car.replace(/毛/g, "け ");
car = car.replace(/民/g, "たみ ");
car = car.replace(/水/g, "みず ");
car = car.replace(/江/g, "え ");
car = car.replace(/池/g, "いけ ");
car = car.replace(/決/g, "けつ ");
car = car.replace(/沖/g, "おき ");
car = car.replace(/没/g, "ぼつ ");
car = car.replace(/沢/g, "さわ ");
car = car.replace(/河/g, "かわ ");
car = car.replace(/油/g, "あぶら ");
car = car.replace(/沼/g, "ぬま ");
car = car.replace(/泉/g, "いずみ ");
car = car.replace(/泊/g, "はく ");
car = car.replace(/法/g, "ほう ");
car = car.replace(/泡/g, "あぶく ");
car = car.replace(/波/g, "なみ ");
car = car.replace(/泥/g, "どろ ");
car = car.replace(/注/g, "ちゅう ");
car = car.replace(/泰/g, "たい ");
car = car.replace(/洞/g, "ほら ");
car = car.replace(/活/g, "かつ ");
car = car.replace(/派/g, "は ");
car = car.replace(/流/g, "りゅう ");
car = car.replace(/浜/g, "はま ");
car = car.replace(/浦/g, "うら ");
car = car.replace(/浪/g, "なみ ");
car = car.replace(/浮/g, "うき ");
car = car.replace(/浴/g, "よく ");
car = car.replace(/海/g, "うみ ");
car = car.replace(/涙/g, "なみだ ");
car = car.replace(/涯/g, "はて ");
car = car.replace(/液/g, "えき ");
car = car.replace(/深/g, "ふけ ");
car = car.replace(/混/g, "こん ");
car = car.replace(/添/g, "てん ");
car = car.replace(/清/g, "さや ");
car = car.replace(/渇/g, "かつ ");
car = car.replace(/済/g, "すみ ");
car = car.replace(/渋/g, "しぶ ");
car = car.replace(/渓/g, "たに ");
car = car.replace(/減/g, "げん ");
car = car.replace(/渦/g, "うず ");
car = car.replace(/測/g, "はかる ");
car = car.replace(/港/g, "みなと ");
car = car.replace(/湖/g, "みずうみ ");
car = car.replace(/湯/g, "ゆ ");
car = car.replace(/湾/g, "わん ");
car = car.replace(/湿/g, "しつ ");
car = car.replace(/満/g, "まん ");
car = car.replace(/準/g, "じゅん ");
car = car.replace(/滑/g, "なめら ");
car = car.replace(/滝/g, "たき ");
car = car.replace(/滴/g, "しずく ");
car = car.replace(/漁/g, "りょう ");
car = car.replace(/漆/g, "うるし ");
car = car.replace(/漢/g, "かん ");
car = car.replace(/漫/g, "まん ");
car = car.replace(/漬/g, "きよざき ");
car = car.replace(/漸/g, "やや ");
car = car.replace(/潟/g, "かた ");
car = car.replace(/激/g, "げき ");
car = car.replace(/濁/g, "にごり ");
car = car.replace(/濃/g, "こ ");
car = car.replace(/瀬/g, "せ ");
car = car.replace(/炉/g, "ろ ");
car = car.replace(/炭/g, "すみ ");
car = car.replace(/点/g, "てん ");
car = car.replace(/為/g, "ため ");
car = car.replace(/無/g, "む ");
car = car.replace(/然/g, "さ ");
car = car.replace(/煙/g, "けむり ");
car = car.replace(/煩/g, "はん ");
car = car.replace(/熟/g, "つくづく ");
car = car.replace(/熱/g, "ねつ ");
car = car.replace(/爆/g, "ばく ");
car = car.replace(/爵/g, "さく ");
car = car.replace(/父/g, "ちち ");
car = car.replace(/片/g, "かた ");
car = car.replace(/版/g, "はん ");
car = car.replace(/牛/g, "うし ");
car = car.replace(/牧/g, "まき ");
car = car.replace(/牲/g, "にえ ");
car = car.replace(/犬/g, "いぬ ");
car = car.replace(/犯/g, "はん ");
car = car.replace(/状/g, "じょう ");
car = car.replace(/狂/g, "きょう ");
car = car.replace(/狩/g, "かり ");
car = car.replace(/独/g, "どいつ ");
car = car.replace(/猛/g, "もう ");
car = car.replace(/猟/g, "りょう ");
car = car.replace(/猫/g, "ねこ ");
car = car.replace(/猶/g, "なお ");
car = car.replace(/猿/g, "さる ");
car = car.replace(/獄/g, "だけ ");
car = car.replace(/率/g, "りつ ");
car = car.replace(/王/g, "おう ");
car = car.replace(/珍/g, "ちん ");
car = car.replace(/班/g, "はん ");
car = car.replace(/現/g, "うつつ ");
car = car.replace(/理/g, "り ");
car = car.replace(/琴/g, "こと ");
car = car.replace(/環/g, "かん ");
car = car.replace(/璽/g, "じ ");
car = car.replace(/用/g, "よう ");
car = car.replace(/田/g, "た ");
car = car.replace(/由/g, "よし ");
car = car.replace(/申/g, "さる ");
car = car.replace(/男/g, "おとこ ");
car = car.replace(/町/g, "まち ");
car = car.replace(/画/g, "かく ");
car = car.replace(/界/g, "かい ");
car = car.replace(/畑/g, "はたけ ");
car = car.replace(/畔/g, "あぜ ");
car = car.replace(/番/g, "つがい ");
car = car.replace(/異/g, "い ");
car = car.replace(/疎/g, "そ ");
car = car.replace(/疑/g, "ぎ ");
car = car.replace(/病/g, "びょう ");
car = car.replace(/症/g, "しょう ");
car = car.replace(/痘/g, "いも ");
car = car.replace(/痛/g, "いた ");
car = car.replace(/痴/g, "ち ");
car = car.replace(/癖/g, "くせ ");
car = car.replace(/発/g, "はつ ");
car = car.replace(/白/g, "しろ ");
car = car.replace(/百/g, "ひゃく ");
car = car.replace(/皮/g, "かわ ");
car = car.replace(/皿/g, "さら ");
car = car.replace(/盆/g, "ぼん ");
car = car.replace(/監/g, "かんざき ");
car = car.replace(/盤/g, "ばん ");
car = car.replace(/目/g, "め ");
car = car.replace(/盾/g, "たて ");
car = car.replace(/省/g, "しょう ");
car = car.replace(/県/g, "けん ");
car = car.replace(/眺/g, "ながむ ");
car = car.replace(/着/g, "ちゃく ");
car = car.replace(/矛/g, "ほこ ");
car = car.replace(/矢/g, "や ");
car = car.replace(/知/g, "ち ");
car = car.replace(/砂/g, "すな ");
car = car.replace(/砕/g, "さい ");
car = car.replace(/砲/g, "ほう ");
car = car.replace(/破/g, "はざき ");
car = car.replace(/硬/g, "こう ");
car = car.replace(/碁/g, "ご ");
car = car.replace(/碑/g, "いしぶみ ");
car = car.replace(/確/g, "かく ");
car = car.replace(/礁/g, "しょう ");
car = car.replace(/礎/g, "いしずえ ");
car = car.replace(/示/g, "しめす ");
car = car.replace(/礼/g, "れい ");
car = car.replace(/祉/g, "みのる ");
car = car.replace(/祖/g, "そ ");
car = car.replace(/祝/g, "いわい ");
car = car.replace(/神/g, "かみ ");
car = car.replace(/票/g, "ひょう ");
car = car.replace(/祭/g, "まつり ");
car = car.replace(/禁/g, "きん ");
car = car.replace(/禅/g, "ぜん ");
car = car.replace(/禍/g, "まが ");
car = car.replace(/福/g, "ふく ");
car = car.replace(/秀/g, "しゅう ");
car = car.replace(/秋/g, "あき ");
car = car.replace(/科/g, "か ");
car = car.replace(/秒/g, "びょう ");
car = car.replace(/称/g, "しょう ");
car = car.replace(/程/g, "ほど ");
car = car.replace(/税/g, "ぜい ");
car = car.replace(/稚/g, "わか ");
car = car.replace(/稲/g, "いね ");
car = car.replace(/稼/g, "かせぎ ");
car = car.replace(/稿/g, "こう ");
car = car.replace(/穀/g, "こく ");
car = car.replace(/穂/g, "ほ ");
car = car.replace(/積/g, "せき ");
car = car.replace(/窓/g, "まど ");
car = car.replace(/窯/g, "かま ");
car = car.replace(/章/g, "しょう ");
car = car.replace(/童/g, "わっぱ ");
car = car.replace(/竹/g, "たけ ");
car = car.replace(/笛/g, "ふえ ");
car = car.replace(/符/g, "ふ ");
car = car.replace(/第/g, "だい ");
car = car.replace(/筆/g, "ふで ");
car = car.replace(/筋/g, "すじ ");
car = car.replace(/筒/g, "つつ ");
car = car.replace(/答/g, "こたえ ");
car = car.replace(/策/g, "さく ");
car = car.replace(/箇/g, "か ");
car = car.replace(/算/g, "さん ");
car = car.replace(/箱/g, "はこ ");
car = car.replace(/範/g, "はん ");
car = car.replace(/簡/g, "かん ");
car = car.replace(/籍/g, "せき ");
car = car.replace(/粉/g, "こな ");
car = car.replace(/粋/g, "いき ");
car = car.replace(/粒/g, "つぶ ");
car = car.replace(/精/g, "せい ");
car = car.replace(/糖/g, "とう ");
car = car.replace(/糧/g, "かて ");
car = car.replace(/糸/g, "いと ");
car = car.replace(/系/g, "けい ");
car = car.replace(/紀/g, "き ");
car = car.replace(/約/g, "やく ");
car = car.replace(/紋/g, "もん ");
car = car.replace(/純/g, "じゅん ");
car = car.replace(/紙/g, "かみ ");
car = car.replace(/級/g, "きゅう ");
car = car.replace(/素/g, "そ ");
car = car.replace(/索/g, "さく ");
car = car.replace(/紫/g, "むらさき ");
car = car.replace(/累/g, "るい ");
car = car.replace(/細/g, "いささ ");
car = car.replace(/紹/g, "みつぐ ");
car = car.replace(/紺/g, "こん ");
car = car.replace(/終/g, "おわり ");
car = car.replace(/組/g, "くみ ");
car = car.replace(/給/g, "きゅう ");
car = car.replace(/統/g, "とう ");
car = car.replace(/絵/g, "え ");
car = car.replace(/絹/g, "きぬ ");
car = car.replace(/続/g, "しょく ");
car = car.replace(/維/g, "これ ");
car = car.replace(/綱/g, "つな ");
car = car.replace(/網/g, "あみ ");
car = car.replace(/総/g, "そう ");
car = car.replace(/緑/g, "みどり ");
car = car.replace(/緒/g, "お ");
car = car.replace(/線/g, "せん ");
car = car.replace(/編/g, "へん ");
car = car.replace(/緯/g, "よこいと ");
car = car.replace(/縄/g, "なわ ");
car = car.replace(/縦/g, "たて ");
car = car.replace(/縫/g, "ぬい ");
car = car.replace(/縮/g, "しゅく ");
car = car.replace(/繊/g, "せん ");
car = car.replace(/織/g, "おり ");
car = car.replace(/繕/g, "のぼる ");
car = car.replace(/繭/g, "まゆ ");
car = car.replace(/缶/g, "かん ");
car = car.replace(/罪/g, "つみ ");
car = car.replace(/署/g, "しょ ");
car = car.replace(/羅/g, "うすもの ");
car = car.replace(/羊/g, "ひつじ ");
car = car.replace(/美/g, "び ");
car = car.replace(/群/g, "ぐん ");
car = car.replace(/義/g, "ぎ ");
car = car.replace(/翌/g, "よく ");
car = car.replace(/習/g, "しゅう ");
car = car.replace(/翻/g, "こぼし ");
car = car.replace(/翼/g, "つばさ ");
car = car.replace(/老/g, "ろう ");
car = car.replace(/考/g, "こう ");
car = car.replace(/耗/g, "こう ");
car = car.replace(/耳/g, "みみ ");
car = car.replace(/聖/g, "せい ");
car = car.replace(/職/g, "しょく ");
car = car.replace(/肉/g, "にく ");
car = car.replace(/肌/g, "はだ ");
car = car.replace(/肝/g, "きも ");
car = car.replace(/肢/g, "あし ");
car = car.replace(/肥/g, "こえ ");
car = car.replace(/肩/g, "かた ");
car = car.replace(/肺/g, "はい ");
car = car.replace(/胃/g, "い ");
car = car.replace(/胆/g, "きも ");
car = car.replace(/背/g, "せ ");
car = car.replace(/胎/g, "たい ");
car = car.replace(/胴/g, "どう ");
car = car.replace(/胸/g, "むね ");
car = car.replace(/脈/g, "みゃく ");
car = car.replace(/脚/g, "あし ");
car = car.replace(/脱/g, "だつ ");
car = car.replace(/脳/g, "のう ");
car = car.replace(/腕/g, "うで ");
car = car.replace(/腰/g, "こし ");
car = car.replace(/腹/g, "はら ");
car = car.replace(/膚/g, "はだ ");
car = car.replace(/膜/g, "まく ");
car = car.replace(/膨/g, "すえなが ");
car = car.replace(/臓/g, "ぞう ");
car = car.replace(/臣/g, "おみ ");
car = car.replace(/自/g, "ころ ");
car = car.replace(/臭/g, "しゅう ");
car = car.replace(/至/g, "し ");
car = car.replace(/舌/g, "した ");
car = car.replace(/舗/g, "ほ ");
car = car.replace(/舞/g, "まい ");
car = car.replace(/舟/g, "ふね ");
car = car.replace(/舶/g, "つむ ");
car = car.replace(/船/g, "ふね ");
car = car.replace(/艇/g, "てい ");
car = car.replace(/艦/g, "かん ");
car = car.replace(/良/g, "りょう ");
car = car.replace(/色/g, "いろ ");
car = car.replace(/芋/g, "いも ");
car = car.replace(/芝/g, "しば ");
car = car.replace(/花/g, "はな ");
car = car.replace(/芸/g, "げい ");
car = car.replace(/芽/g, "め ");
car = car.replace(/苗/g, "なえ ");
car = car.replace(/若/g, "わか ");
car = car.replace(/苦/g, "く ");
car = car.replace(/英/g, "えい ");
car = car.replace(/茎 /g, "くき ");
car = car.replace(/茶 /g, "ちゃ ");
car = car.replace(/草 /g, "くさ ");
car = car.replace(/荘 /g, "しょう ");
car = car.replace(/荷 /g, "に ");
car = car.replace(/菊 /g, "きく ");
car = car.replace(/菌 /g, "きん ");
car = car.replace(/菓 /g, "か ");
car = car.replace(/菜 /g, "な ");
car = car.replace(/華 /g, "はな ");
car = car.replace(/落 /g, "おち ");
car = car.replace(/葉 /g, "は ");
car = car.replace(/葬 /g, "はふり ");
car = car.replace(/蒸 /g, "じょう ");
car = car.replace(/蓄 /g, "いざわ ");
car = car.replace(/薦 /g, "こも ");
car = car.replace(/薫 /g, "かおり ");
car = car.replace(/薬 /g, "くすり ");
car = car.replace(/藩 /g, "はん ");
car = car.replace(/藻 /g, "も ");
car = car.replace(/虚 /g, "うろ ");
car = car.replace(/虜 /g, "とりこ ");
car = car.replace(/虞 /g, "おそれ ");
car = car.replace(/虫 /g, "むし ");
car = car.replace(/蚊 /g, "か ");
car = car.replace(/蚕 /g, "かいこ ");
car = car.replace(/蛇 /g, "へび ");
car = car.replace(/蛍 /g, "ほたる ");
car = car.replace(/蛮 /g, "ばん ");
car = car.replace(/血 /g, "ち ");
car = car.replace(/衆 /g, "しゅう ");
car = car.replace(/行 /g, "ぎょう ");
car = car.replace(/衝 /g, "しょう ");
car = car.replace(/衡 /g, "くびき ");
car = car.replace(/衣 /g, "ころも ");
car = car.replace(/袋 /g, "ふくろ ");
car = car.replace(/被 /g, "ひ ");
car = car.replace(/裁 /g, "さい ");
car = car.replace(/裂 /g, "れつ ");
car = car.replace(/装 /g, "そう ");
car = car.replace(/裏 /g, "うら ");
car = car.replace(/補 /g, "たすく ");
car = car.replace(/裸 /g, "はだか ");
car = car.replace(/製 /g, "せい ");
car = car.replace(/複 /g, "ふく ");
car = car.replace(/襟 /g, "えり ");
car = car.replace(/襲 /g, "かさね ");
car = car.replace(/西 /g, "にし ");
car = car.replace(/要 /g, "よう ");
car = car.replace(/見 /g, "けん ");
car = car.replace(/視 /g, "し ");
car = car.replace(/覚 /g, "さとり ");
car = car.replace(/親 /g, "おや ");
car = car.replace(/観 /g, "かん ");
car = car.replace(/解 /g, "かい ");
car = car.replace(/触 /g, "ふれ ");
car = car.replace(/言 /g, "げん ");
car = car.replace(/計 /g, "けい ");
car = car.replace(/訓 /g, "くん ");
car = car.replace(/記 /g, "き ");
car = car.replace(/訪 /g, "ほう ");
car = car.replace(/許 /g, "ばかし ");
car = car.replace(/訴 /g, "はしべ ");
car = car.replace(/証 /g, "あかし ");
car = car.replace(/詔 /g, "みことのり ");
car = car.replace(/評 /g, "ひょう ");
car = car.replace(/詞 /g, "ことば ");
car = car.replace(/詩 /g, "し ");
car = car.replace(/詰 /g, "つめ ");
car = car.replace(/話 /g, "はなし ");
car = car.replace(/該 /g, "がい ");
car = car.replace(/誌 /g, "し ");
car = car.replace(/認 /g, "みとむ ");
car = car.replace(/語 /g, "ご ");
car = car.replace(/誠 /g, "まこと ");
car = car.replace(/誤 /g, "ご ");
car = car.replace(/説 /g, "せつ ");
car = car.replace(/読 /g, "さとる ");
car = car.replace(/課 /g, "か ");
car = car.replace(/調 /g, "ちょう ");
car = car.replace(/論 /g, "ろん ");
car = car.replace(/諸 /g, "しょ ");
car = car.replace(/諾 /g, "なぎ ");
car = car.replace(/謀 /g, "はかりごと ");
car = car.replace(/謄 /g, "たかし ");
car = car.replace(/講 /g, "こう ");
car = car.replace(/謡 /g, "うたい ");
car = car.replace(/識 /g, "しき ");
car = car.replace(/譜 /g, "ふ ");
car = car.replace(/議 /g, "ぎ ");
car = car.replace(/豆 /g, "まめ ");
car = car.replace(/豚 /g, "ぶた ");
car = car.replace(/豪 /g, "ごう ");
car = car.replace(/貝 /g, "かい ");
car = car.replace(/貞 /g, "てい ");
car = car.replace(/負 /g, "ふ ");
car = car.replace(/財 /g, "ざい ");
car = car.replace(/貢 /g, "こう ");
car = car.replace(/貨 /g, "たから ");
car = car.replace(/貫 /g, "かん ");
car = car.replace(/責 /g, "せき ");
car = car.replace(/貯 /g, "おさむ ");
car = car.replace(/貴 /g, "き ");
car = car.replace(/費 /g, "ひ ");
car = car.replace(/貿 /g, "すえひろ ");
car = car.replace(/賀 /g, "が ");
car = car.replace(/賊 /g, "あだ ");
car = car.replace(/賛 /g, "さん ");
car = car.replace(/賜 /g, "たまもの ");
car = car.replace(/賞 /g, "しょう ");
car = car.replace(/賢 /g, "かしこ ");
car = car.replace(/賦 /g, "ふ ");
car = car.replace(/赤 /g, "あか ");
car = car.replace(/赴 /g, "ちよ ");
car = car.replace(/超 /g, "ちょう ");
car = car.replace(/趣 /g, "おもむき ");
car = car.replace(/足 /g, "あし ");
car = car.replace(/距 /g, "きょ ");
car = car.replace(/跡 /g, "あと ");
car = car.replace(/路 /g, "じ ");
car = car.replace(/車 /g, "くるま ");
car = car.replace(/軌 /g, "わだち ");
car = car.replace(/軟 /g, "なん ");
car = car.replace(/転 /g, "ころ ");
car = car.replace(/軸 /g, "じく ");
car = car.replace(/軽 /g, "けい ");
car = car.replace(/載 /g, "さい ");
car = car.replace(/辞 /g, "ことば ");
car = car.replace(/辱 /g, "じょく ");
car = car.replace(/農 /g, "のう ");
car = car.replace(/辺 /g, "へん ");
car = car.replace(/逆 /g, "ぎゃく ");
car = car.replace(/途 /g, "と ");
car = car.replace(/通 /g, "つう ");
car = car.replace(/速 /g, "そく ");
car = car.replace(/連 /g, "れん ");
car = car.replace(/週 /g, "しゅう ");
car = car.replace(/遂 /g, "とぐる ");
car = car.replace(/運 /g, "うん ");
car = car.replace(/遍 /g, "へん ");
car = car.replace(/過 /g, "か ");
car = car.replace(/道 /g, "みち ");
car = car.replace(/達 /g, "たち ");
car = car.replace(/違 /g, "ちがい ");
car = car.replace(/遠 /g, "とお ");
car = car.replace(/遣 /g, "けん ");
car = car.replace(/適 /g, "たま ");
car = car.replace(/遷 /g, "せん ");
car = car.replace(/選 /g, "せん ");
car = car.replace(/還 /g, "めぐる ");
car = car.replace(/邦 /g, "くに ");
car = car.replace(/邪 /g, "よこしま ");
car = car.replace(/邸 /g, "やしき ");
car = car.replace(/郡 /g, "ぐん ");
car = car.replace(/部 /g, "ぶ ");
car = car.replace(/郭 /g, "かく ");
car = car.replace(/郷 /g, "きょう ");
car = car.replace(/酌 /g, "しゃく ");
car = car.replace(/配 /g, "はい ");
car = car.replace(/酒 /g, "さけ ");
car = car.replace(/酢 /g, "す ");
car = car.replace(/酷 /g, "こく ");
car = car.replace(/酸 /g, "さん ");
car = car.replace(/野 /g, "の ");
car = car.replace(/量 /g, "りょう ");
car = car.replace(/針 /g, "はり ");
car = car.replace(/釣 /g, "つり ");
car = car.replace(/鈴 /g, "すず ");
car = car.replace(/鉄 /g, "てつ ");
car = car.replace(/鉛 /g, "なまり ");
car = car.replace(/鉢 /g, "はち ");
car = car.replace(/鉱 /g, "あらかね ");
car = car.replace(/銃 /g, "じゅう ");
car = car.replace(/銑 /g, "ずく ");
car = car.replace(/銘 /g, "めい ");
car = car.replace(/銭 /g, "せん ");
car = car.replace(/鋼 /g, "はがね ");
car = car.replace(/錘 /g, "つむ ");
car = car.replace(/錠 /g, "じょう ");
car = car.replace(/錬 /g, "れん ");
car = car.replace(/録 /g, "ろく ");
car = car.replace(/鎖 /g, "くさり ");
car = car.replace(/鎮 /g, "しず ");
car = car.replace(/鏡 /g, "かがみ ");
car = car.replace(/鐘 /g, "かね ");
car = car.replace(/鑑 /g, "かがみ ");
car = car.replace(/長 /g, "ちょう ");
car = car.replace(/閉 /g, "へい ");
car = car.replace(/開 /g, "かい ");
car = car.replace(/関 /g, "せき ");
car = car.replace(/閣 /g, "かく ");
car = car.replace(/閥 /g, "ばつ ");
car = car.replace(/闘 /g, "とう ");
car = car.replace(/限 /g, "さちよ ");
car = car.replace(/院 /g, "いん ");
car = car.replace(/陣 /g, "じん ");
car = car.replace(/陳 /g, "ひね ");
car = car.replace(/陵 /g, "みささぎ ");
car = car.replace(/険 /g, "けん ");
car = car.replace(/隅 /g, "すみ ");
car = car.replace(/隊 /g, "たい ");
car = car.replace(/階 /g, "かい ");
car = car.replace(/隔 /g, "かく ");
car = car.replace(/隣 /g, "となり ");
car = car.replace(/隻 /g, "せき ");
car = car.replace(/雄 /g, "おす ");
car = car.replace(/雅 /g, "が ");
car = car.replace(/集 /g, "しゅう ");
car = car.replace(/雇 /g, "やとい ");
car = car.replace(/雌 /g, "めす ");
car = car.replace(/雑 /g, "ざつ ");
car = car.replace(/離 /g, "り ");
car = car.replace(/難 /g, "なん ");
car = car.replace(/雨 /g, "あめ ");
car = car.replace(/雪 /g, "ゆき ");
car = car.replace(/雰 /g, "きり ");
car = car.replace(/雲 /g, "くも ");
car = car.replace(/零 /g, "れい ");
car = car.replace(/電 /g, "いなずま ");
car = car.replace(/震 /g, "しん ");
car = car.replace(/霊 /g, "れい ");
car = car.replace(/霜 /g, "しも ");
car = car.replace(/霧 /g, "きり ");
car = car.replace(/青 /g, "あお ");
car = car.replace(/非 /g, "ひ ");
car = car.replace(/革 /g, "かわ ");
car = car.replace(/靴 /g, "くつ ");
car = car.replace(/韻 /g, "いん ");
car = car.replace(/響 /g, "ひびき ");
car = car.replace(/頂 /g, "いただき ");
car = car.replace(/順 /g, "じゅん ");
car = car.replace(/頑 /g, "かたくな ");
car = car.replace(/領 /g, "りょう ");
car = car.replace(/題 /g, "だい ");
car = car.replace(/顔 /g, "かお ");
car = car.replace(/顕 /g, "あらわ ");
car = car.replace(/願 /g, "がん ");
car = car.replace(/飛 /g, "ひ ");
car = car.replace(/食 /g, "しょく ");
car = car.replace(/飯 /g, "めし ");
car = car.replace(/飲 /g, "のみ ");
car = car.replace(/飾 /g, "かざり ");
car = car.replace(/馬 /g, "うま ");
car = car.replace(/駅 /g, "えき ");
car = car.replace(/駆 /g, "かける ");
car = car.replace(/験 /g, "しるし ");
car = car.replace(/髄 /g, "ずい ");
car = car.replace(/高 /g, "たか ");
car = car.replace(/髪 /g, "かみ ");
car = car.replace(/鬼 /g, "おに ");
car = car.replace(/魅 /g, "みいる ");
car = car.replace(/魔 /g, "ま ");
car = car.replace(/鯨 /g, "くじら ");
car = car.replace(/鳥 /g, "とり ");
car = car.replace(/鶏 /g, "にわとり ");
car = car.replace(/麦 /g, "むぎ ");
car = car.replace(/麻 /g, "あさ ");
car = car.replace(/黄 /g, "き ");
car = car.replace(/黒 /g, "くろ ");
car = car.replace(/黙 /g, "しじま ");
car = car.replace(/鼓 /g, "つづみ ");
car = car.replace(/鼻 /g, "はな ");
car = car.replace(/齢 /g, "よわい ");
// car = car.replace(/とうきょう/g, "Токио");
// car = car.replace(/きょうと/g, "Киото");
// car = car.replace(/よこはま/g, "Йокохама");
// car = car.replace(/よこすか/g, "Йокосука");
// car = car.replace(/トヨタ/g, "Тойота");
// car = car.replace(/じゅうじゅつ/g, "джиу-джитсу");
// car = car.replace(/えん/g, "иен");
car = car.replace(/きゃ/g, "кя");
car = car.replace(/キャ/g, "кя");
car = car.replace(/ぎゃ/g, "гя");
car = car.replace(/ギャ/g, "гя");
car = car.replace(/きゅ/g, "кю");
car = car.replace(/キュ/g, "кю");
car = car.replace(/ぎゅ/g, "гю");
car = car.replace(/ギュ/g, "гю");
car = car.replace(/きょ/g, "кё");
car = car.replace(/キョ/g, "кё");
car = car.replace(/ぎょ/g, "гё");
car = car.replace(/ギョ/g, "гё");
car = car.replace(/しゃ/g, "ся");
car = car.replace(/シャ/g, "ся");
car = car.replace(/じゃ/g, "дзя");
car = car.replace(/ジャ/g, "дзя");
car = car.replace(/しゅ/g, "сю");
car = car.replace(/シュ/g, "сю");
car = car.replace(/じゅ/g, "дзю");
car = car.replace(/ジュ/g, "дзю");
car = car.replace(/しょ/g, "сё");
car = car.replace(/ショ/g, "сё");
car = car.replace(/じょ/g, "дзё");
car = car.replace(/ジョ/g, "дзё");
car = car.replace(/ちゃ/g, "тя");
car = car.replace(/チャ/g, "тя");
car = car.replace(/ぢゃ/g, "дзя");
car = car.replace(/ヂャ/g, "дзя");
car = car.replace(/ちゅ/g, "тю");
car = car.replace(/チュ/g, "тю");
car = car.replace(/ぢゅ/g, "дзю");
car = car.replace(/ヂュ/g, "дзю");
car = car.replace(/ちょ/g, "тё");
car = car.replace(/チョ/g, "тё");
car = car.replace(/ぢょ/g, "дзё");
car = car.replace(/ヂョ/g, "дзё");
car = car.replace(/にゃ/g, "ня");
car = car.replace(/ニャ/g, "ня");
car = car.replace(/にゅ/g, "ню");
car = car.replace(/ニュ/g, "ню");
car = car.replace(/にょ/g, "нё");
car = car.replace(/ニョ/g, "нё");
car = car.replace(/ひゃ/g, "хя");
car = car.replace(/ヒャ/g, "хя");
car = car.replace(/びゃ/g, "бя");
car = car.replace(/ビャ/g, "бя");
car = car.replace(/ぴゃ/g, "пя");
car = car.replace(/ピャ/g, "пя");
car = car.replace(/ひゅ/g, "хю");
car = car.replace(/ヒュ/g, "хю");
car = car.replace(/びゅ/g, "бю");
car = car.replace(/ビュ/g, "бю");
car = car.replace(/ぴゅ/g, "пю");
car = car.replace(/ピュ/g, "пю");
car = car.replace(/ひょ/g, "хё");
car = car.replace(/ヒョ/g, "хё");
car = car.replace(/びょ/g, "бё");
car = car.replace(/ビョ/g, "бё");
car = car.replace(/ぴょ/g, "пё");
car = car.replace(/ピョ/g, "пё");
car = car.replace(/みゃ/g, "мя");
car = car.replace(/ミャ/g, "мя");
car = car.replace(/みゅ/g, "мю");
car = car.replace(/ミュ/g, "мю");
car = car.replace(/みょ/g, "мё");
car = car.replace(/ミョ/g, "мё");
car = car.replace(/りゃ/g, "ря");
car = car.replace(/リャ/g, "ря");
car = car.replace(/りゅ/g, "рю");
car = car.replace(/リュ/g, "рю");
car = car.replace(/りょ/g, "рё");
car = car.replace(/リョ/g, "рё");
car = car.replace(/あい/g, "ай");
car = car.replace(/アイ/g, "ай");
car = car.replace(/うい/g, "уй");
car = car.replace(/ウイ/g, "уй");
car = car.replace(/えい/g, "эй");
car = car.replace(/エイ/g, "эй");
car = car.replace(/おい/g, "ой");
car = car.replace(/オイ/g, "ой");
car = car.replace(/いぇ/g, "イェ");
car = car.replace(/しぇ/g, "シェ");
car = car.replace(/じぇ/g, "ジェ");
car = car.replace(/ちぇ/g, "チェ");
car = car.replace(/つぇ/g, "ツェ");
car = car.replace(/ふぇ/g, "フェ");
car = car.replace(/うぇ/g, "ウェ");
car = car.replace(/ゔぇ/g, "ヴェ");
car = car.replace(/っつ/g, "тцу");
car = car.replace(/ウィ/g, "ви");
car = car.replace(/ヰ/g, "ви");
car = car.replace(/ウォ/g, "во");
car = car.replace(/ウェ/g, "вэ");
car = car.replace(/ヱ/g, "вэ");
car = car.replace(/イェ/g, "е");
car = car.replace(/ユェ/g, "иэ");
car = car.replace(/イェ/g, "иэ");
car = car.replace(/ヷ/g, "ва");
car = car.replace(/ヴァ/g, "ва");
car = car.replace(/ヸ/g, "ви");
car = car.replace(/ヴィ/g, "ви");
car = car.replace(/ヹ/g, "вэ");
car = car.replace(/ヴェ/g, "вэ");
car = car.replace(/ヺ/g, "во");
car = car.replace(/ヴォ/g, "во");
car = car.replace(/ヴャ/g, "вя");
car = car.replace(/ヴュ/g, "вю");
car = car.replace(/ヴョ/g, "вё");
car = car.replace(/ヴ/g, "ву");
car = car.replace(/シェ/g, "шэ");
car = car.replace(/ジェ/g, "джэ");
car = car.replace(/チェ/g, "че");
car = car.replace(/スィ/g, "си");
car = car.replace(/スャ/g, "ся");
car = car.replace(/スュ/g, "сю");
car = car.replace(/スョ/g, "сё");
car = car.replace(/ズィ/g, "зи");
car = car.replace(/ズャ/g, "зя");
car = car.replace(/ズュ/g, "зю");
car = car.replace(/ズョ/g, "зё");
car = car.replace(/ティ/g, "ти");
car = car.replace(/トゥ/g, "ту");
car = car.replace(/テャ/g, "тя");
car = car.replace(/テュ/g, "тю");
car = car.replace(/テョ/g, "тё");
car = car.replace(/ディ/g, "ди");
car = car.replace(/ドゥ/g, "ду");
car = car.replace(/デャ/g, "дя");
car = car.replace(/デュ/g, "дю");
car = car.replace(/デョ/g, "дё");
car = car.replace(/ツァ/g, "ца");
car = car.replace(/ツィ/g, "ци");
car = car.replace(/ツェ/g, "цэ");
car = car.replace(/ツォ/g, "цо");
car = car.replace(/ファ/g, "фа");
car = car.replace(/フィ/g, "фи");
car = car.replace(/ホゥ/g, "ху");
car = car.replace(/フェ/g, "фэ");
car = car.replace(/フォ/g, "фо");
car = car.replace(/フャ/g, "фя");
car = car.replace(/フュ/g, "фю");
car = car.replace(/フョ/g, "фё");
car = car.replace(/リェ/g, "ре");
car = car.replace(/ウァ/g, "ва");
car = car.replace(/ウィ/g, "ви");
car = car.replace(/ウェ/g, "вэ");
car = car.replace(/ウォ/g, "во");
car = car.replace(/ウャ/g, "вя");
car = car.replace(/ウュ /g, "вю");
car = car.replace(/ウョ/g, "вё");
car = car.replace(/クヮ/g, "ква");
car = car.replace(/クァ/g, "ква");
car = car.replace(/クィ/g, "кви");
car = car.replace(/クゥ/g, "кву");
car = car.replace(/クェ/g, "квэ");
car = car.replace(/クォ/g, "кво");
car = car.replace(/グヮ/g, "гва");
car = car.replace(/グァ/g, "гва");
car = car.replace(/グィ/g, "гви");
car = car.replace(/グゥ/g, "гву");
car = car.replace(/グェ/g, "гвэ");
car = car.replace(/グォ/g, "гво");
car = car.replace(/あ/g, "а");
car = car.replace(/ア/g, "а");
car = car.replace(/い/g, "и");
car = car.replace(/イ/g, "и");
car = car.replace(/え/g, "э");
car = car.replace(/エ/g, "э");
car = car.replace(/お/g, "о");
car = car.replace(/オ/g, "о");
car = car.replace(/か/g, "ка");
car = car.replace(/カ/g, "ка");
car = car.replace(/が/g, "га");
car = car.replace(/ガ/g, "га");
car = car.replace(/き/g, "ки");
car = car.replace(/キ/g, "ки");
car = car.replace(/ぎ/g, "ги");
car = car.replace(/ギ/g, "ги");
car = car.replace(/く/g, "ку");
car = car.replace(/ク/g, "ку");
car = car.replace(/ぐ/g, "гу");
car = car.replace(/グ/g, "гу");
car = car.replace(/け/g, "кэ");
car = car.replace(/ケ/g, "кэ");
car = car.replace(/げ/g, "гэ");
car = car.replace(/ゲ/g, "гэ");
car = car.replace(/こ/g, "ко");
car = car.replace(/コ/g, "ко");
car = car.replace(/ご/g, "го");
car = car.replace(/ゴ/g, "го");
car = car.replace(/さ/g, "са");
car = car.replace(/サ/g, "са");
car = car.replace(/ざ/g, "дза");
car = car.replace(/ザ/g, "дза");
car = car.replace(/し/g, "си");
car = car.replace(/シ/g, "си");
car = car.replace(/じ/g, "дзи");
car = car.replace(/ジ/g, "дзи");
car = car.replace(/す/g, "су");
car = car.replace(/ス/g, "су");
car = car.replace(/ず/g, "дзу");
car = car.replace(/ズ/g, "дзу");
car = car.replace(/せ/g, "сэ");
car = car.replace(/セ/g, "сэ");
car = car.replace(/ぜ/g, "дзэ");
car = car.replace(/ゼ/g, "дзэ");
car = car.replace(/そ/g, "со");
car = car.replace(/ソ/g, "со");
car = car.replace(/ぞ/g, "дзо");
car = car.replace(/ゾ/g, "дзо");
car = car.replace(/た/g, "та");
car = car.replace(/タ/g, "та");
car = car.replace(/だ/g, "да");
car = car.replace(/ダ/g, "да");
car = car.replace(/ち/g, "ти");
car = car.replace(/チ/g, "ти");
car = car.replace(/ぢ/g, "дзи");
car = car.replace(/ヂ/g, "дзи");
car = car.replace(/つ/g, "цу");
car = car.replace(/ツ/g, "цу");
car = car.replace(/づ/g, "дзу");
car = car.replace(/ヅ/g, "дзу");
car = car.replace(/て/g, "тэ");
car = car.replace(/テ/g, "тэ");
car = car.replace(/で/g, "дэ");
car = car.replace(/デ/g, "дэ");
car = car.replace(/と/g, "то");
car = car.replace(/ト/g, "то");
car = car.replace(/ど/g, "до");
car = car.replace(/ド/g, "до");
car = car.replace(/な/g, "на");
car = car.replace(/ナ/g, "на");
car = car.replace(/に/g, "ни");
car = car.replace(/ニ/g, "ни");
car = car.replace(/ぬ/g, "ну");
car = car.replace(/ヌ/g, "ну");
car = car.replace(/ね/g, "нэ");
car = car.replace(/ネ/g, "нэ");
car = car.replace(/の/g, "но");
car = car.replace(/ノ/g, "но");
car = car.replace(/は/g, "ха");
car = car.replace(/ハ/g, "ха");
car = car.replace(/ば/g, "ба");
car = car.replace(/バ/g, "ба");
car = car.replace(/ぱ/g, "па");
car = car.replace(/パ/g, "па");
car = car.replace(/ひ/g, "хи");
car = car.replace(/ヒ/g, "хи");
car = car.replace(/び/g, "би");
car = car.replace(/ビ/g, "би");
car = car.replace(/ぴ/g, "пи");
car = car.replace(/ピ/g, "пи");
car = car.replace(/ふ/g, "фу");
car = car.replace(/フ/g, "фу");
car = car.replace(/ぶ/g, "бу");
car = car.replace(/ブ/g, "бу");
car = car.replace(/ぷ/g, "пу");
car = car.replace(/プ/g, "пу");
car = car.replace(/へ/g, "хэ");
car = car.replace(/ヘ/g, "хэ");
car = car.replace(/べ/g, "бэ");
car = car.replace(/ベ/g, "бэ");
car = car.replace(/ぺ/g, "пэ");
car = car.replace(/ペ/g, "пэ");
car = car.replace(/ほ/g, "хо");
car = car.replace(/ホ/g, "хо");
car = car.replace(/ぼ/g, "бо");
car = car.replace(/ボ/g, "бо");
car = car.replace(/ぽ/g, "по");
car = car.replace(/ポ/g, "по");
car = car.replace(/ま/g, "ма");
car = car.replace(/マ/g, "ма");
car = car.replace(/み/g, "ми");
car = car.replace(/ミ/g, "ми");
car = car.replace(/む/g, "му");
car = car.replace(/ム/g, "му");
car = car.replace(/め/g, "мэ");
car = car.replace(/メ/g, "мэ");
car = car.replace(/も/g, "мо");
car = car.replace(/モ/g, "мо");
car = car.replace(/や/g, "я");
car = car.replace(/ヤ/g, "я");
car = car.replace(/ゆ/g, "ю");
car = car.replace(/ユ/g, "ю");
car = car.replace(/よ/g, "ё");
car = car.replace(/ヨ/g, "ё");
car = car.replace(/ら/g, "ра");
car = car.replace(/ラ/g, "ра");
car = car.replace(/り/g, "ри");
car = car.replace(/リ/g, "ри");
car = car.replace(/る/g, "ру");
car = car.replace(/ル/g, "ру");
car = car.replace(/れ/g, "рэ");
car = car.replace(/レ/g, "рэ");
car = car.replace(/ろ/g, "ро");
car = car.replace(/ロ/g, "ро");
car = car.replace(/わ/g, "ва");
car = car.replace(/ワ/g, "ва");
car = car.replace(/を/g, "о");
car = car.replace(/ヲ/g, "о");
car = car.replace(/оう/g, "о");
car = car.replace(/оウ/g, "о");
car = car.replace(/ёう/g, "ё");
car = car.replace(/ёウ/g, "ё");
car = car.replace(/уう/g, "у");
car = car.replace(/уウ/g, "у");
car = car.replace(/юう/g, "ю");
car = car.replace(/юウ/g, "ю");
car = car.replace(/う/g, "у");
car = car.replace(/ウ/g, "у");
car = car.replace(/んп/g, "мп");
car = car.replace(/ンп/g, "мп");
car = car.replace(/んб/g, "мб");
car = car.replace(/ンб/g, "мб");
car = car.replace(/んм/g, "мм");
car = car.replace(/ンм/g, "мм");
car = car.replace(/んа/g, "нъа");
car = car.replace(/ンа/g, "нъа");
car = car.replace(/んэ/g, "нъэ");
car = car.replace(/ンэ/g, "нъэ");
car = car.replace(/んи/g, "нъи");
car = car.replace(/ンи/g, "нъи");
car = car.replace(/んо/g, "нъо");
car = car.replace(/ンо/g, "нъо");
car = car.replace(/んу/g, "нъу");
car = car.replace(/ンу/g, "нъу");
car = car.replace(/んя/g, "нъя");
car = car.replace(/ンя/g, "нъя");
car = car.replace(/んю/g, "нъю");
car = car.replace(/ンю/g, "нъю");
car = car.replace(/んё/g, "нъё");
car = car.replace(/ンё/g, "нъё");
car = car.replace(/ん/g, "н");
car = car.replace(/ン/g, "н");
car = car.replace(/ッ/g, "っ");
car = car.replace(/っк/g, "кк");
car = car.replace(/っс/g, "сс");
car = car.replace(/っт/g, "тт");
car = car.replace(/っн/g, "нн");
car = car.replace(/っх/g, "хх");
car = car.replace(/っм/g, "мм");
car = car.replace(/っр/g, "рр");
car = car.replace(/っв/g, "вв");
car = car.replace(/っн/g, "нн");
car = car.replace(/っг/g, "гг");
car = car.replace(/っд/g, "дд");
car = car.replace(/っб/g, "бб");
car = car.replace(/っп/g, "пп");
// car = car.replace(/ ё/g, " йо");
car = car.replace(/эии/g, "эйи");
car = car.replace(/ー/g, "");
car = car.replace(/ャ/g, "я");
car = car.replace(/ュ/g, "ю");
car = car.replace(/ョ/g, "ё");
car = car.replace(/ェ/g, "е");
car = car.replace(/・/g, " ");
car = car.replace(/ /g, " ");
car = car.replace(/、/g, ".");
return car;
}
function normalize(s) {
s = s.replace(/\s+/g, " ");
return s;
}
function capitalizeFirstLetter(s) {
return s.charAt(0).toUpperCase() + s.slice(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment