Skip to content

特定の条件下で「かい」で「日位」が候補に出る #1315

Open

Description

@faketanaka

Description

特定の条件下で「かい」と入力すると、「日位」が候補に表示されます。

「3日位」の読み方は「みっかくらい」「みっかぐらい」「さんにちくらい」「さんにちぐらい」あたりが考えられますが、「かくらい」「かぐらい」と読むのであって「かい」ではないはずです。

Steps to reproduce

Steps to reproduce the behavior:

  1. 直接入力で「4」と入力
  2. Mozcオン
  3. 直後に「かい」と入力
  4. 候補の最上位に「日位」が出る

Expected behavior

A clear and concise description of what you expected to happen.

Actual behavior

A clear and concise description of what you actually got.

Screenshots

If applicable, add screenshots to help explain your problem.

Version or commit-id

Mozc-2.31.5810.102+24.11.oss

Environment

  • OS: Arch Linux
  • IMF (for Linux) fcitx5
  • Related Applications Firefox

Investigations

  • Whether this issue happens on both Ibus and other IMF (e.g. Fcitx, uim).
    • yes, no, N/A
  • Whether this issue happens on other IMEs (e.g. Anthy, SKK).
    • yes, no, N/A
  • What applications this issue happens on (e.g. Chromium, gedit).
    • list of applications
  • What applications this issue does not happen on (e.g. Chromium, gedit).
    • list of applications, or not-found
  • (optional) What versions or commit-ids this issue did not happen on
    (e.g. Mozc-2.28.4960.100+24.11.oss).
    • list of versions or commit-ids, or no-investigation.

Additional context

Add any other context about the problem here.

Activity

  1. tats-u commented on Jul 26, 2025

    @tats-u
    Contributor
    rg '日位$' .\src\data\dictionary_oss\
    .\src\data\dictionary_oss\dictionary01.txt
    61860:はんにちい        1909    1949    7249    半日位
    
    .\src\data\dictionary_oss\dictionary02.txt
    19391:にちくらい        2009    1949    6855    日位
    20695:1にちくらい       2042    1949    7761    1日位
    21978:3っかい   2042    1949    6417    3日位
    21979:3っかい   2042    1949    6917    三日位
    22186:4かい     2042    1949    7238    4日位
    22187:4かい     2042    1949    7738    四日位
    23710:いちにちくらい    2042    1949    7761    1日位
    24310:いつかい  2042    1949    7020    5日位
    24311:いつかい  2042    1949    7520    五日位
    25187:ついたちい        2042    1949    7181    1日位
    25188:ついたちい        2042    1949    7681    一日位
    25198:ついたちくらい    2042    1949    7551    1日位
    26299:ふつかい  2042    1949    6635    2日位
    26300:ふつかい  2042    1949    7135    二日位
    26318:みっかい  2042    1949    6417    3日位
    26319:みっかい  2042    1949    6917    三日位
    26382:よっかい  2042    1949    7238    4日位
    26383:よっかい  2042    1949    7738    四日位
    

    The following entries are harmful and must be eliminated:

    rg --engine auto '(?<!くら)い\t.+日位$' .\src\data\dictionary_oss\
    .\src\data\dictionary_oss\dictionary01.txt
    61860:はんにちい        1909    1949    7249    半日位
    
    .\src\data\dictionary_oss\dictionary02.txt
    21978:3っかい   2042    1949    6417    3日位
    21979:3っかい   2042    1949    6917    三日位
    22186:4かい     2042    1949    7238    4日位
    22187:4かい     2042    1949    7738    四日位
    24310:いつかい  2042    1949    7020    5日位
    24311:いつかい  2042    1949    7520    五日位
    25187:ついたちい        2042    1949    7181    1日位
    25188:ついたちい        2042    1949    7681    一日位
    26299:ふつかい  2042    1949    6635    2日位
    26300:ふつかい  2042    1949    7135    二日位
    26318:みっかい  2042    1949    6417    3日位
    26319:みっかい  2042    1949    6917    三日位
    26382:よっかい  2042    1949    7238    4日位
    26383:よっかい  2042    1949    7738    四日位
    

    I doubt any Japanese use these readings.

  2. tats-u commented on Aug 24, 2025

    @tats-u
    Contributor

    MS-IME

    Image Image Image

    ATOK

    Image Image Image
  3. tats-u commented on Aug 25, 2025

    @tats-u
    Contributor

    Should we correct the offending entries directly, or remove them and refill correct entries as normal new external words?

  4. tats-u commented on Sep 27, 2025

    @tats-u
    Contributor

    I found "半日位" is registered by "はんにちい". Should be "はんにちくらい" or "はんにちぐらい".

    Image
  5. yukawa commented on May 16, 2026

    @yukawa
    Collaborator

    Thank you for the report. I agree that these entries can be (and probably better to be) removed.

    So I've looked into the current and past Mozc dictionary entries with Claude Code and local LLMs to see if there are any similar cases.

    Here are entries that should be removed:

    # 年 (year)
    1ねんい           1年位
    1ねんい           一年位
    2ねんい           2年位
    2ねんい           二年位
    3ねんい           3年位
    3ねんい           三年位
    5ねんい           5年位
    5ねんい           五年位
    7ねんい           7年位
    いちねんい        1年位
    いちねんい        一年位
    ごねんい          5年位
    ごねんい          五年位
    さんねんい        3年位
    さんねんい        三年位
    ななねんい        7年位
    にねんい          2年位
    にねんい          二年位
    よねんい          4年位
    よねんい          四年位
    きょねんい        去年位
    # 月 (month-name)
    3がつい           3月位
    5がつい           5月位
    6がつい           6月位
    ごがつい          5月位
    さんがつい        3月位
    ろくがつい        6月位
    # か月/ヶ月/カ月/ヵ月 (counter for months)
    1かげつい         1か月位
    1かげつい         1カ月位
    1かげつい         1ヵ月位
    1かげつい         1ヶ月位
    1かげつい         一か月位
    1かげつい         一カ月位
    1かげつい         一ヵ月位
    1かげつい         一ヶ月位
    2かげつい         2か月位
    2かげつい         2ヶ月位
    2かげつい         二ヶ月位
    3かげつい         3か月位
    3かげつい         3カ月位
    3かげつい         3ヶ月位
    3かげつい         三ヶ月位
    4かげつい         4ヶ月位
    いっかげつい      1か月位
    いっかげつい      1カ月位
    いっかげつい      1ヵ月位
    いっかげつい      1ヶ月位
    いっかげつい      一か月位
    いっかげつい      一カ月位
    いっかげつい      一ヵ月位
    いっかげつい      一ヶ月位
    さんかげつい      3か月位
    さんかげつい      3カ月位
    さんかげつい      3ヶ月位
    さんかげつい      三ヶ月位
    にかげつい        2か月位
    にかげつい        2ヶ月位
    にかげつい        二ヶ月位
    よんかげつい      4ヶ月位
    はんとしい        半年位
    # 日 (day)
    3っかい           3日位
    3っかい           三日位
    いつかい          5日位
    いつかい          五日位
    ついたちい        1日位
    ついたちい        一日位
    ふつかい          2日位
    ふつかい          二日位
    みっかい          3日位
    みっかい          三日位
    はんにちい        半日位
    # 時 (o'clock)
    3じい             3時位
    3じい             三時位
    6じい             6時位
    6じい             六時位
    7じい             7時位
    7じい             七時位
    8じい             8時位
    8じい             八時位
    9じい             9時位
    9じい             九時位
    くじい            9時位
    くじい            九時位
    さんじい          3時位
    さんじい          三時位
    しちじい          7時位
    しちじい          七時位
    はちじい          8時位
    はちじい          八時位
    ろくじい          6時位
    ろくじい          六時位
    # 時間 (hours-duration)
    1じかんい         1時間位
    1じかんい         一時間位
    2じかんい         2時間位
    2じかんい         二時間位
    3じかんい         3時間位
    3じかんい         三時間位
    5じかんい         5時間位
    5じかんい         五時間位
    いちじかんい      1時間位
    いちじかんい      一時間位
    ごじかんい        5時間位
    ごじかんい        五時間位
    さんじかんい      3時間位
    さんじかんい      三時間位
    にじかんい        2時間位
    にじかんい        二時間位
    よじかんい        4時間位
    よじかんい        四時間位
    # 分 (minutes)
    1ぶんい           1分位
    2ぶんい           2分位
    3ぶんい           3分位
    4ぶんい           4分位
    5ぶんい           5分位
    7ぶんい           7分位
    いちぶんい        1分位
    ごぶんい          5分位
    さんぶんい        3分位
    にぶんい          2分位
    ななぶんい        7分位
    よんぶんい        4分位
    はんぶんい        半分位
    # 秒 (seconds)
    3びょうい         3秒位
    5びょうい         5秒位
    5びょうい         五秒位
    ごびょうい        5秒位
    ごびょうい        五秒位
    さんびょうい      3秒位
    # 回 (times/occurrences)
    1かいい           1回位
    1かいい           一回位
    2かいい           2回位
    2かいい           二回位
    3かいい           3回位
    3かいい           三回位
    5かいい           5回位
    5かいい           五回位
    いっかいい        1回位
    いっかいい        一回位
    ごかいい          5回位
    ごかいい          五回位
    さんかいい        3回位
    さんかいい        三回位
    にかいい          2回位
    にかいい          二回位
    # 週間 (weeks)
    1しゅうかんい     1週間位
    1しゅうかんい     一週間位
    2しゅうかんい     2週間位
    2しゅうかんい     二週間位
    3しゅうかんい     3週間位
    3しゅうかんい     三週間位
    いっしゅうかんい  1週間位
    いっしゅうかんい  一週間位
    さんしゅうかんい  3週間位
    さんしゅうかんい  三週間位
    にしゅうかんい    2週間位
    にしゅうかんい    二週間位
    # 歳 (age)
    2さいい           2歳位
    2さいい           二歳位
    3さいい           3歳位
    3さいい           三歳位
    5さいい           5歳位
    5さいい           五歳位
    ごさいい          5歳位
    ごさいい          五歳位
    さんさいい        3歳位
    さんさいい        三歳位
    にさいい          2歳位
    にさいい          二歳位
    # 人 (people)
    1りい             1人位
    1りい             一人位
    2りい             2人位
    2りい             二人位
    3にんい           3人位
    3にんい           三人位
    5にんい           5人位
    5にんい           五人位
    ごにんい          5人位
    ごにんい          五人位
    さんにんい        3人位
    さんにんい        三人位
    ひとい            人位
    ひとりい          1人位
    ひとりい          一人位
    ふたりい          2人位
    ふたりい          二人位
    よにんい          4人位
    よにんい          四人位
    # 円 (currency)
    えんい            円位
    

    Here are entries we want to keep:

    きょうみほんい    興味本位
    めいじんい        名人位
    

    Here are entries we want to keep, but may be moved into an extra dictionary file so that developers (or users) can choose whether to include them by default or not:

    きんほんい        金本位
    ぎんほんい        銀本位
    たんほんい        単本位
    ふくほんい        複本位
    ほんい            本位
    だいい            代位
    ちゅうかんい      中間位
    1ぶんい           一分位
    2ぶんい           二分位
    3ぶんい           三分位
    4ぶんい           四分位
    5ぶんい           五分位
    7ぶんい           七分位
    いちぶんい        一分位
    ごぶんい          五分位
    さんぶんい        三分位
    しぶんい          四分位
    にぶんい          二分位
    ななぶんい        七分位
    よんぶんい        四分位
    ぶんい            分位
    
  6. tats-u commented on May 16, 2026

    @tats-u
    Contributor

    よんぶんい 四分位

    四分位 for quartile is しぶんい.

    (kun reading) + "ぶんい" should be removed, too. "いちぶんい" also doesn't make sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions