-
Notifications
You must be signed in to change notification settings - Fork 0
read_city
Yuuki Toriyama edited this page Feb 2, 2024
·
1 revision
入力された文字列から市町村名を抽出します。
---
title: read_city()
---
flowchart TD
Start(処理開始)-->|input|LoopStart["市町村名リストから市町村名を1つ読み込む"]-->|city_name|Condition1{"inputに\ncity_nameが含まれる?"}
Condition1-->|Yes|ReturnValue["マッチ結果を返す"]
Condition1-->|No|ApplyAdapter["inputにOrthographicalVariantAdapterを適用"]-->Condition2{"inputに\ncity_nameが含まれる?"}
Condition2-->|Yes|ReturnValue
Condition2-->|No|Condition3{"最後の要素?"}
ReturnValue-->End("処理終了")
Condition3-->|Yes|ReturnNone["Noneを返す"]-->End
Condition3-->|No|LoopStart