Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(2.2.2): 〜つの慣用句に対応 #85

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

hirokiky
Copy link
Contributor

「〜つ」に関する慣用句に、「2.2.2 算用数字と漢数字の使い分け」が誤検知してしまうので、回避するよう対応しました。

慣用句:

  • 一つひとつ
  • [一二]つ返事
  • ただ一つ
  • [女男]手一つ
  • 馬鹿の一つ覚え
  • 二つに一つ
  • 二つと無い
  • 瓜二つ
  • 人を呪わば穴二つ
  • 三つ子の魂百まで
  • 四つ葉のクローバー

現実的な範囲でよく使うもののみ対応しています。対応しようとすると他にも「七つの大罪」や「四つ切りサイズ」などもありますが、あまり頻度が高くなさそうですのでこのパッチには含めていません。他にもよくあるものがあれば教えていただけると嬉しいです。

また ignoreWhenMatched 関数の実装も変更していますので、そのあたりも問題ないかや、最適化できそうな実装があれば教えてください。

Copy link
Member

@azu azu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

問題ないと思います。
ありがとうございます!

@azu
Copy link
Member

azu commented Mar 10, 2021

Xに一つシリーズは、なんか色々ある感じなんですね。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants