@chaffjs/lang-ja 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ # 金額の数と通貨の書き方のあいだに入る、桁の語(100万円、$3 million)。字面どおりに照らす。
2
+ id: amount-multiplier
3
+ language: ja
4
+ entries:
5
+ - pattern: 千
6
+ - pattern: 万
7
+ - pattern: 億
8
+ - pattern: 兆
9
+ - pattern: million
10
+ - pattern: billion
@@ -0,0 +1,24 @@
1
+ # 金額の通貨の書き方。group はどの通貨か、position は金額のどちら側に書くか(¥1,000 は前、1,000円 は後ろ)。
2
+ # 同じ通貨をいくつもの書き方で書けるので、一つの文書の中で混ざっていないかを currency-notation-consistency が見る。字面どおりに照らす。
3
+ id: currency-notation
4
+ language: ja
5
+ entries:
6
+ - { pattern: "¥", position: before, group: JPY }
7
+ - { pattern: "¥", position: before, group: JPY }
8
+ - { pattern: "円", position: after, group: JPY }
9
+ - { pattern: "JPY", position: before, group: JPY }
10
+ - { pattern: "JPY", position: after, group: JPY }
11
+ - { pattern: "$", position: before, group: USD }
12
+ - { pattern: "US$", position: before, group: USD }
13
+ - { pattern: "USD", position: before, group: USD }
14
+ - { pattern: "USD", position: after, group: USD }
15
+ - { pattern: "ドル", position: after, group: USD }
16
+ - { pattern: "米ドル", position: after, group: USD }
17
+ - { pattern: "€", position: before, group: EUR }
18
+ - { pattern: "EUR", position: before, group: EUR }
19
+ - { pattern: "EUR", position: after, group: EUR }
20
+ - { pattern: "ユーロ", position: after, group: EUR }
21
+ - { pattern: "£", position: before, group: GBP }
22
+ - { pattern: "GBP", position: before, group: GBP }
23
+ - { pattern: "GBP", position: after, group: GBP }
24
+ - { pattern: "ポンド", position: after, group: GBP }
@@ -0,0 +1,18 @@
1
+ # 点で終わる略語。見出しがこれで終わるなら、その点は言葉のうちで、終わりの記号ではない。heading-end-punctuation-mix は
2
+ # その見出しを比べない。見出しの最後の語として、書いたとおりの大文字小文字で照らす。
3
+ id: heading-end-word
4
+ language: ja
5
+ entries:
6
+ - pattern: etc.
7
+ - pattern: Inc.
8
+ - pattern: Ltd.
9
+ - pattern: Co.
10
+ - pattern: Corp.
11
+ - pattern: vs.
12
+ - pattern: e.g.
13
+ - pattern: i.e.
14
+ - pattern: No.
15
+ - pattern: U.S.
16
+ - pattern: U.K.
17
+ - pattern: a.m.
18
+ - pattern: p.m.
@@ -0,0 +1,16 @@
1
+ # 書き言葉では標準的でないとされる形と、標準の形(instead_of)。nonstandard-word が読む。
2
+ # 話し言葉では広く使われるが、文書では誤りと読まれる形だけを載せる。書き誤りは known-misspelling、ら抜きは ra-nuki が扱う。
3
+ # 自作。公開された一覧から写したものではない。
4
+ id: nonstandard-word
5
+ language: ja
6
+ entries:
7
+ - pattern: 違かった
8
+ instead_of: 違った
9
+ - pattern: 違くて
10
+ instead_of: 違って
11
+ - pattern: 違くない
12
+ instead_of: 違わない
13
+ - pattern: なにげに
14
+ instead_of: なにげなく
15
+ - pattern: すいません
16
+ instead_of: すみません
@@ -0,0 +1,7 @@
1
+ # 本文の語に番号付きの注を付ける印(※1)。行の頭に同じ印と番号を書いた行がその注になる(※1 特定の走行環境条件)。
2
+ # footnote-mismatch は、注の無い印と、本文が一度も付けない注を見る。Markdown の脚注([^1])は印が要らないので、ここには書かない。
3
+ # 「注」は「受注10件」「発注2回」の語の中にもあり、印と見分けられないので入れない。字面どおりに照らす。
4
+ id: note-mark
5
+ language: ja
6
+ entries:
7
+ - pattern: ※
@@ -0,0 +1,13 @@
1
+ # 英語の序数の数の後ろに書く字(1st、22nd、113th)と、それが付く数の終わり(group)。日本語の文書も英語の序数を書く(3rd party)。
2
+ # 数の終わりのうち最も長く合うものが決める。11・12・13 は 1・2・3 で終わっても th、group が空のものはそれ以外の数。
3
+ # 法律の引用の「2d」「3d」は序数として読まない。
4
+ id: ordinal-suffix
5
+ language: ja
6
+ entries:
7
+ - { pattern: "st", group: "1" }
8
+ - { pattern: "nd", group: "2" }
9
+ - { pattern: "rd", group: "3" }
10
+ - { pattern: "th", group: "11" }
11
+ - { pattern: "th", group: "12" }
12
+ - { pattern: "th", group: "13" }
13
+ - { pattern: "th", group: "" }
@@ -0,0 +1,12 @@
1
+ # 二つの数のあいだに置いて範囲を言う記号(10〜20、10-20)。一つの文書でいくつもの記号が混ざっていないかを
2
+ # range-notation-consistency が見る。「から」は文の中の言い方で記号と使い分けるので入れない。ハイフン(group: ambiguous)は番号(2-3、NSF 13-542)にも使うので、
3
+ # すぐ後ろに単位や語(6-12 歳、10-20%)が続くときだけ範囲と読む。字面どおりに照らす。
4
+ id: range-notation
5
+ language: ja
6
+ entries:
7
+ - pattern: 〜
8
+ - pattern: ~
9
+ - pattern: "~"
10
+ - { pattern: "-", group: ambiguous }
11
+ - { pattern: "-", group: ambiguous }
12
+ - pattern: –
@@ -0,0 +1,8 @@
1
+ # 百分率と、それが一部の割合を言う集まり(share-whole)のあいだの語と、集まりを百分率のどちら側に書くか。
2
+ # 「回答者の62%」は前、「62%の回答者」は後ろ。
3
+ id: share-whole-link
4
+ language: ja
5
+ entries:
6
+ - { pattern: "の", position: before }
7
+ - { pattern: "のうち", position: before }
8
+ - { pattern: "の", position: after }
@@ -0,0 +1,20 @@
1
+ # 百分率がその一部の割合を言う、人や物の集まり(回答者の62%)。この集まりの一部の割合は 100% を超えない。
2
+ # 伸びや比べる元にもなる語(前年の、予算の)は入れない。
3
+ id: share-whole
4
+ language: ja
5
+ entries:
6
+ - pattern: 回答者
7
+ - pattern: 参加者
8
+ - pattern: 社員
9
+ - pattern: 従業員
10
+ - pattern: 職員
11
+ - pattern: 利用者
12
+ - pattern: 顧客
13
+ - pattern: 学生
14
+ - pattern: 生徒
15
+ - pattern: 世帯
16
+ - pattern: 有権者
17
+ - pattern: 会員
18
+ - pattern: 患者
19
+ - pattern: 応募者
20
+ - pattern: 全員
@@ -0,0 +1,9 @@
1
+ # 手順の番号の前に書く語(手順3、ステップ2、Step 4)。見出しの頭のこの語と番号、または番号付きの箇条書きの番号が手順で、
2
+ # 本文の「手順5を参照」がそのどれにも無い番号を指せば step-reference-missing が言う。字面どおりに照らす。
3
+ id: step-word
4
+ language: ja
5
+ entries:
6
+ - pattern: 手順
7
+ - pattern: ステップ
8
+ - pattern: Step
9
+ - pattern: step
@@ -0,0 +1,9 @@
1
+ # 目次の見出し。この見出しの下の箇条書きの項目を、文書の見出しと突き合わせる(toc-heading-mismatch)。
2
+ # 英語の文書の見出しも読むので、英語の名前も並べる。大文字と小文字は区別しない。
3
+ id: toc-heading
4
+ language: ja
5
+ entries:
6
+ - pattern: 目次
7
+ - pattern: もくじ
8
+ - pattern: Table of Contents
9
+ - pattern: Contents
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chaffjs/lang-ja",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "Japanese language adapter for chaff",
5
5
  "license": "MIT",
6
6
  "author": "isamu",