Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
数十万、数十億という言葉を許容するようにするプルリクエストです。
「しばしば数十万行以上に」という文字列を含む文章を書いていたのですが、
現状では以下の様にエラー扱いになります。
https://www.jtf.jp/jp/style_guide/pdf/jtf_style_guide.pdf#page=19
の例には載っていないため、どうするべきか迷いましたが、
一般的には
数十万
,数十億
も慣用的表現、熟語、概数、固有名詞、副詞など、漢数字を使用することが一般的な語句では漢数字を使います。
に該当するかと思い、プルリクエストを作成しました。
上記のような例に載っていない修正について、
このライブラリの方針(JTF完全準拠 or このような修正ならOK)に合うかどうか教えて頂きたいです。
(必ずしも
数10万
を数十万
にしなければならないという根拠はJTFのガイドラインには見つからないためmatchToReplace(text, /数([0-9]+)[兆億万]/g, toKanNumber);
+該当部分のテストを削除して数字・漢数字のどちらでもよい状態にするという形も有り得そうです。)