Skip to content

Commit

Permalink
Merge pull request #542 from YuukiToriyama/feature/notation-distortio…
Browse files Browse the repository at this point in the history
…n/matsuho-ichida

「松帆櫟田」の表記ゆれに対応
  • Loading branch information
YuukiToriyama authored Nov 16, 2024
2 parents bb18bf9 + c32547c commit ecfe5c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/adapter/orthographical_variant_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pub enum OrthographicalVariant {
,
,
,
,
}

impl OrthographicalVariant {
Expand Down Expand Up @@ -71,6 +72,7 @@ impl OrthographicalVariant {
OrthographicalVariant::鷆 => &['鷆', '鷏'],
OrthographicalVariant::斑 => &['斑', '班'],
OrthographicalVariant::櫻 => &['櫻', '桜'],
OrthographicalVariant::櫟 => &['櫟', '擽'],
}
}

Expand Down
1 change: 1 addition & 0 deletions core/src/tokenizer/read_town.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ fn find_town(input: &str, candidates: &Vec<String>) -> Option<(String, String)>
OrthographicalVariant::,
OrthographicalVariant::,
OrthographicalVariant::,
OrthographicalVariant::,
],
};
if let Some(result) = adapter.apply(input, candidate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ address,prefecture,city,town,rest
# 「斑目」と「班目」の表記揺れへの対応
神奈川県南足柄市班目639,神奈川県,南足柄市,班目,639
神奈川県南足柄市斑目639,神奈川県,南足柄市,班目,639
# 「櫟」と「擽」の表記ゆれへの対応
兵庫県南あわじ市松帆櫟田196,兵庫県,南あわじ市,松帆櫟田,196
兵庫県南あわじ市松帆擽田196,兵庫県,南あわじ市,松帆櫟田,196

0 comments on commit ecfe5c8

Please sign in to comment.