Skip to content

Commit

Permalink
update: #408: 「班目」と「斑目」の表記ゆれに対応
Browse files Browse the repository at this point in the history
  • Loading branch information
YuukiToriyama committed Nov 16, 2024
1 parent 493fe89 commit 5b1fafb
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 @@ -31,6 +31,7 @@ pub enum OrthographicalVariant {
,
,
,
,
}

impl OrthographicalVariant {
Expand Down Expand Up @@ -67,6 +68,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 @@ -93,6 +93,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 @@ -6,3 +6,6 @@ address,prefecture,city,town,rest
# 「上氷鉋」と「上氷飽」の表記揺れへの対応
長野県長野市川中島町上氷鉋1368,長野県,長野市,川中島町上氷鉋,1368
長野県長野市川中島町上氷飽1368,長野県,長野市,川中島町上氷鉋,1368
# 「斑目」と「班目」の表記揺れへの対応
神奈川県南足柄市班目639,神奈川県,南足柄市,班目,639
神奈川県南足柄市斑目639,神奈川県,南足柄市,班目,639

0 comments on commit 5b1fafb

Please sign in to comment.