Skip to content

Commit 27ba5f9

Browse files
authored
4.0.0 beta (#45)
fix #19 fix #42 fix #43
2 parents fd99609 + fcddd8d commit 27ba5f9

File tree

4 files changed

+119
-38
lines changed

4 files changed

+119
-38
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ textlint --preset ja-technical-writing README.md
6262
* [同一の単語を間違えて連続しているのをチェックする](#%E5%90%8C%E4%B8%80%E3%81%AE%E5%8D%98%E8%AA%9E%E3%82%92%E9%96%93%E9%81%95%E3%81%88%E3%81%A6%E9%80%A3%E7%B6%9A%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%81%AE%E3%82%92%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF%E3%81%99%E3%82%8B)
6363
* [よくある日本語の誤用をチェックする](#%E3%82%88%E3%81%8F%E3%81%82%E3%82%8B%E6%97%A5%E6%9C%AC%E8%AA%9E%E3%81%AE%E8%AA%A4%E7%94%A8%E3%82%92%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF%E3%81%99%E3%82%8B)
6464
* [冗長な表現をチェックする](#%E5%86%97%E9%95%B7%E3%81%AA%E8%A1%A8%E7%8F%BE%E3%82%92%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF%E3%81%99%E3%82%8B)
65+
* [入力ミスで発生する不自然なアルファベットをチェックする](#%E5%85%A5%E5%8A%9B%E3%83%9F%E3%82%B9%E3%81%A7%E7%99%BA%E7%94%9F%E3%81%99%E3%82%8B%E4%B8%8D%E8%87%AA%E7%84%B6%E3%81%AA%E3%82%A2%E3%83%AB%E3%83%95%E3%82%A1%E3%83%99%E3%83%83%E3%83%88%E3%82%92%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF%E3%81%99%E3%82%8B)
6566
- [Changelog](#changelog)
6667
- [Semantic Versioning Policy](#semantic-versioning-policy)
6768
- [ルールの利用者](#%E3%83%AB%E3%83%BC%E3%83%AB%E3%81%AE%E5%88%A9%E7%94%A8%E8%80%85)
@@ -245,6 +246,11 @@ textlint --preset ja-technical-writing README.md
245246

246247
"ja-no-redundant-expression": true
247248

249+
### 入力ミスで発生する不自然なアルファベットをチェックする
250+
> https://github.com/textlint-ja/textlint-rule-ja-unnatural-alphabet
251+
252+
"ja-unnatural-alphabet": true
253+
248254
## Changelog
249255

250256
See [Releases page](https://github.com/textlint-ja/textlint-rule-preset-ja-technical-writing/releases).

lib/textlint-rule-preset-ja-technical-writing.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ module.exports = {
2222
"ja-no-weak-phrase": interopRequire("textlint-rule-ja-no-weak-phrase"),
2323
"ja-no-successive-word": interopRequire("textlint-rule-ja-no-successive-word"),
2424
"ja-no-abusage": interopRequire("textlint-rule-ja-no-abusage"),
25-
"ja-no-redundant-expression": interopRequire("textlint-rule-ja-no-redundant-expression")
25+
"ja-no-redundant-expression": interopRequire("textlint-rule-ja-no-redundant-expression"),
26+
"ja-unnatural-alphabet": interopRequire("textlint-rule-ja-unnatural-alphabet")
2627
},
2728
rulesConfig: {
2829
// # 1文の長さは100文字以下とする
@@ -114,6 +115,9 @@ module.exports = {
114115
"ja-no-abusage": true,
115116
// # 冗長な表現をチェックする
116117
// https://github.com/textlint-ja/textlint-rule-ja-no-redundant-expression
117-
"ja-no-redundant-expression": true
118+
"ja-no-redundant-expression": true,
119+
// # 入力ミスで発生する不自然なアルファベットをチェックする
120+
// https://github.com/textlint-ja/textlint-rule-ja-unnatural-alphabet
121+
"ja-unnatural-alphabet": true
118122
}
119123
};

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,17 @@
3131
],
3232
"devDependencies": {
3333
"markdown-toc": "^1.0.2",
34-
"mocha": "^6.0.1"
34+
"mocha": "^6.0.2"
3535
},
3636
"dependencies": {
3737
"@textlint-rule/textlint-rule-no-invalid-control-character": "^1.2.0",
3838
"interop-require": "^1.0.0",
3939
"textlint-rule-ja-no-abusage": "^1.2.2",
4040
"textlint-rule-ja-no-mixed-period": "^2.1.1",
41-
"textlint-rule-ja-no-redundant-expression": "^2.0.0",
41+
"textlint-rule-ja-no-redundant-expression": "^3.0.1",
4242
"textlint-rule-ja-no-successive-word": "^1.1.0",
4343
"textlint-rule-ja-no-weak-phrase": "^1.0.2",
44+
"textlint-rule-ja-unnatural-alphabet": "2.0.1",
4445
"textlint-rule-max-comma": "^1.0.2",
4546
"textlint-rule-max-kanji-continuous-len": "^1.1.0",
4647
"textlint-rule-max-ten": "^2.0.1",
@@ -51,7 +52,7 @@
5152
"textlint-rule-no-dropping-the-ra": "^1.0.3",
5253
"textlint-rule-no-exclamation-question-mark": "^1.0.2",
5354
"textlint-rule-no-hankaku-kana": "^1.0.1",
54-
"textlint-rule-no-mix-dearu-desumasu": "^3.0.2",
55+
"textlint-rule-no-mix-dearu-desumasu": "^4.0.0",
5556
"textlint-rule-no-nfd": "^1.0.1",
5657
"textlint-rule-preset-jtf-style": "^2.3.3",
5758
"textlint-rule-sentence-length": "^2.1.1"

yarn.lock

Lines changed: 103 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,31 @@
1313
version "4.0.2"
1414
resolved "https://registry.yarnpkg.com/@textlint/ast-node-types/-/ast-node-types-4.0.2.tgz#5386a15187798efb48eb71fa1cbf6ca2770b206a"
1515

16+
"@textlint/ast-node-types@^4.2.1":
17+
version "4.2.1"
18+
resolved "https://registry.npmjs.org/@textlint/ast-node-types/-/ast-node-types-4.2.1.tgz#978fa10e23468114462fc08ef29f96980c12a8ef"
19+
integrity sha512-Pqg1LTJpF929Ovi/lCaPqlyz8yDwBFbQulC0jyQcbRAoTxYS4AZMc48Ug2yk0so5hISQXKrlAxyVBmBVl9EKGA==
20+
21+
"@textlint/regexp-string-matcher@^1.0.2":
22+
version "1.0.2"
23+
resolved "https://registry.npmjs.org/@textlint/regexp-string-matcher/-/regexp-string-matcher-1.0.2.tgz#af2f04023d1481e1e6144f8ef22788811b93e542"
24+
integrity sha512-AU4QVhTgdVOC+YdwpJdRTuSSl/bnxxKy/ou0UnuGOK8Phlq5K0zDOsLnBur55xRYf0wW8mYvb3YiiTxJDdPGhQ==
25+
dependencies:
26+
escape-string-regexp "^1.0.5"
27+
execall "^1.0.0"
28+
lodash.sortby "^4.7.0"
29+
lodash.uniq "^4.5.0"
30+
lodash.uniqwith "^4.5.0"
31+
to-regex "^3.0.2"
32+
33+
"@textlint/types@^1.1.2":
34+
version "1.1.3"
35+
resolved "https://registry.npmjs.org/@textlint/types/-/types-1.1.3.tgz#fcfe9bd012e01d0b641ff57e9d5776fa5b9759af"
36+
integrity sha512-gU9wYNLKPf9wSX30XXcn+dj6vQSjS4Tudj+BCc1shtMj3u+wKUxDyt42OoCCJTerpF7pHViGQNxnPM9VkuXqyQ==
37+
dependencies:
38+
"@textlint/ast-node-types" "^4.2.1"
39+
structured-source "^3.0.2"
40+
1641
amp-create-callback@^1.0.0:
1742
version "1.0.1"
1843
resolved "https://registry.yarnpkg.com/amp-create-callback/-/amp-create-callback-1.0.1.tgz#51bb6f1491545d86e9bf236caff514bbb4578310"
@@ -54,13 +79,14 @@ analyze-desumasu-dearu@^2.1.2:
5479
version "2.1.5"
5580
resolved "https://registry.yarnpkg.com/analyze-desumasu-dearu/-/analyze-desumasu-dearu-2.1.5.tgz#9caa2a5a06146c20679f7dc9f3af527db6f68f41"
5681

57-
analyze-desumasu-dearu@^3.1.0:
58-
version "3.1.0"
59-
resolved "https://registry.yarnpkg.com/analyze-desumasu-dearu/-/analyze-desumasu-dearu-3.1.0.tgz#af36b948454c0783a431f2ab938a59f24d40e150"
82+
analyze-desumasu-dearu@^4.0.0:
83+
version "4.0.0"
84+
resolved "https://registry.npmjs.org/analyze-desumasu-dearu/-/analyze-desumasu-dearu-4.0.0.tgz#0b0252a4dc4fb43c798a614f2a5e4d93ffcc6912"
85+
integrity sha512-3japlt1pOkEaoH7afOJ7Fw20Ojbaz+5NjPX6tPNx1CjrPPKrq6+U6QYqTijz4TxaW/2uLd7r6Iayod1lIEbSZw==
6086
dependencies:
6187
array-find "^1.0.0"
62-
kuromojin "^1.2.1"
63-
object.assign "^4.0.3"
88+
kuromojin "^1.4.0"
89+
object.assign "^4.1.0"
6490

6591
ansi-colors@3.2.3:
6692
version "3.2.3"
@@ -934,7 +960,7 @@ kuromoji@0.1.1:
934960
doublearray "0.0.2"
935961
zlibjs "^0.2.0"
936962

937-
kuromojin@^1.0.2, kuromojin@^1.1.0, kuromojin@^1.2.1, kuromojin@^1.3.1, kuromojin@^1.3.2:
963+
kuromojin@^1.0.2, kuromojin@^1.1.0, kuromojin@^1.2.1, kuromojin@^1.3.1, kuromojin@^1.3.2, kuromojin@^1.4.0:
938964
version "1.4.0"
939965
resolved "https://registry.yarnpkg.com/kuromojin/-/kuromojin-1.4.0.tgz#2d955746736981e73d02dbfd20eeee8110cddab2"
940966
dependencies:
@@ -968,6 +994,21 @@ locate-path@^3.0.0:
968994
p-locate "^3.0.0"
969995
path-exists "^3.0.0"
970996

997+
lodash.sortby@^4.7.0:
998+
version "4.7.0"
999+
resolved "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438"
1000+
integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=
1001+
1002+
lodash.uniq@^4.5.0:
1003+
version "4.5.0"
1004+
resolved "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
1005+
integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=
1006+
1007+
lodash.uniqwith@^4.5.0:
1008+
version "4.5.0"
1009+
resolved "https://registry.npmjs.org/lodash.uniqwith/-/lodash.uniqwith-4.5.0.tgz#7a0cbf65f43b5928625a9d4d0dc54b18cadc7ef3"
1010+
integrity sha1-egy/ZfQ7WShiWp1NDcVLGMrcfvM=
1011+
9711012
lodash@^4.14.0:
9721013
version "4.17.4"
9731014
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
@@ -1089,10 +1130,10 @@ mkdirp@0.5.1:
10891130
dependencies:
10901131
minimist "0.0.8"
10911132

1092-
mocha@^6.0.1:
1093-
version "6.0.1"
1094-
resolved "https://registry.npmjs.org/mocha/-/mocha-6.0.1.tgz#c287da87913fa0edc4c44850ba8bc4fdbf20d3ea"
1095-
integrity sha512-tQzCxWqxSD6Oyg5r7Ptbev0yAMD8p+Vfh4snPFuiUsWqYj0eVYTDT2DkEY307FTj0WRlIWN9rWMMAUzRmijgVQ==
1133+
mocha@^6.0.2:
1134+
version "6.0.2"
1135+
resolved "https://registry.npmjs.org/mocha/-/mocha-6.0.2.tgz#cdc1a6fdf66472c079b5605bac59d29807702d2c"
1136+
integrity sha512-RtTJsmmToGyeTznSOMoM6TPEk1A84FQaHIciKrRqARZx+B5ccJ5tXlmJzEKGBxZdqk9UjpRsesZTUkZmR5YnuQ==
10961137
dependencies:
10971138
ansi-colors "3.2.3"
10981139
browser-stdout "1.3.1"
@@ -1130,10 +1171,22 @@ morpheme-match-all@^1.1.0:
11301171
dependencies:
11311172
morpheme-match "^1.1.0"
11321173

1174+
morpheme-match-all@^1.2.0:
1175+
version "1.2.0"
1176+
resolved "https://registry.npmjs.org/morpheme-match-all/-/morpheme-match-all-1.2.0.tgz#1aa437de0c0bfe2874f299d0206151248a75a7cb"
1177+
integrity sha512-z8F1k4U8fAMcjkGBDWwVrKZLR8VSvKtYh6+5GZ9hi5mtXrYMILwDMgiPwfNGJvk/liQEG9/oNAJUcwLpyjI9Xg==
1178+
dependencies:
1179+
morpheme-match "^1.2.1"
1180+
11331181
morpheme-match@^1.0.1, morpheme-match@^1.1.0:
11341182
version "1.1.0"
11351183
resolved "https://registry.yarnpkg.com/morpheme-match/-/morpheme-match-1.1.0.tgz#d8f3330b95e5f27d1cb610f763285c724c25874a"
11361184

1185+
morpheme-match@^1.2.1:
1186+
version "1.2.1"
1187+
resolved "https://registry.npmjs.org/morpheme-match/-/morpheme-match-1.2.1.tgz#783cdcf9feb0e8e7da7e794a8a38f6d711796aa0"
1188+
integrity sha512-SSIcFPas4Dctx5PbrfKbW5XNADlkcn38LI+fqgB9QtminQ7FXeOR3//rnAmooZ1/5zTGeFoi8H9kFBAH9y1nfQ==
1189+
11371190
ms@2.0.0:
11381191
version "2.0.0"
11391192
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
@@ -1194,37 +1247,30 @@ object-copy@^0.1.0:
11941247
define-property "^0.2.5"
11951248
kind-of "^3.0.3"
11961249

1197-
object-keys@^1.0.10, object-keys@^1.0.8:
1198-
version "1.0.11"
1199-
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d"
1200-
12011250
object-keys@^1.0.11, object-keys@^1.0.12:
12021251
version "1.1.0"
12031252
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.0.tgz#11bd22348dd2e096a045ab06f6c85bcc340fa032"
12041253

1254+
object-keys@^1.0.8:
1255+
version "1.0.11"
1256+
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d"
1257+
12051258
object-visit@^1.0.0:
12061259
version "1.0.1"
12071260
resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb"
12081261
dependencies:
12091262
isobject "^3.0.0"
12101263

1211-
object.assign@4.1.0:
1264+
object.assign@4.1.0, object.assign@^4.1.0:
12121265
version "4.1.0"
1213-
resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.0.tgz#968bf1100d7956bb3ca086f006f846b3bc4008da"
1266+
resolved "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz#968bf1100d7956bb3ca086f006f846b3bc4008da"
1267+
integrity sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==
12141268
dependencies:
12151269
define-properties "^1.1.2"
12161270
function-bind "^1.1.1"
12171271
has-symbols "^1.0.0"
12181272
object-keys "^1.0.11"
12191273

1220-
object.assign@^4.0.3:
1221-
version "4.0.4"
1222-
resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.0.4.tgz#b1c9cc044ef1b9fe63606fc141abbb32e14730cc"
1223-
dependencies:
1224-
define-properties "^1.1.2"
1225-
function-bind "^1.1.0"
1226-
object-keys "^1.0.10"
1227-
12281274
object.getownpropertydescriptors@^2.0.3:
12291275
version "2.0.3"
12301276
resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16"
@@ -1641,6 +1687,16 @@ textlint-rule-helper@^2.0.0:
16411687
dependencies:
16421688
unist-util-visit "^1.1.0"
16431689

1690+
textlint-rule-helper@^2.1.1:
1691+
version "2.1.1"
1692+
resolved "https://registry.npmjs.org/textlint-rule-helper/-/textlint-rule-helper-2.1.1.tgz#d572588685359134bc779939b217e61f087dab0f"
1693+
integrity sha512-6fxgHzoJVkjl3LaC1b2Egi+5wbhG4i0pU0knJmQujVhxIJ3D3AcQQZPs457xKAi5xKz1WayYeTeJ5jrD/hnO7g==
1694+
dependencies:
1695+
"@textlint/ast-node-types" "^4.2.1"
1696+
"@textlint/types" "^1.1.2"
1697+
structured-source "^3.0.2"
1698+
unist-util-visit "^1.1.0"
1699+
16441700
textlint-rule-ja-no-abusage@^1.2.2:
16451701
version "1.2.2"
16461702
resolved "https://registry.npmjs.org/textlint-rule-ja-no-abusage/-/textlint-rule-ja-no-abusage-1.2.2.tgz#6478a150d4dcea4e95bb88a2af92a2fcace1c5f0"
@@ -1658,13 +1714,17 @@ textlint-rule-ja-no-mixed-period@^2.1.1:
16581714
check-ends-with-period "^1.0.1"
16591715
textlint-rule-helper "^2.0.0"
16601716

1661-
textlint-rule-ja-no-redundant-expression@^2.0.0:
1662-
version "2.0.0"
1663-
resolved "https://registry.yarnpkg.com/textlint-rule-ja-no-redundant-expression/-/textlint-rule-ja-no-redundant-expression-2.0.0.tgz#ef5e34f619005c9e5d5509b6eeceab11b9610f10"
1717+
textlint-rule-ja-no-redundant-expression@^3.0.1:
1718+
version "3.0.1"
1719+
resolved "https://registry.npmjs.org/textlint-rule-ja-no-redundant-expression/-/textlint-rule-ja-no-redundant-expression-3.0.1.tgz#414d49f276ea4b772632d760c74831ebee1bda74"
1720+
integrity sha512-Ng1pLiELXqD8RnDbkSaQlQcCQQS6qhFJqbb8HUVs65/wq6Mb4h+gOJOS63yO8e9V7WAYDhjKePTcduu1xwsCfA==
16641721
dependencies:
1722+
"@textlint/regexp-string-matcher" "^1.0.2"
16651723
kuromojin "^1.3.2"
1666-
morpheme-match "^1.0.1"
1667-
morpheme-match-all "^1.1.0"
1724+
morpheme-match "^1.2.1"
1725+
morpheme-match-all "^1.2.0"
1726+
textlint-rule-helper "^2.1.1"
1727+
textlint-util-to-string "^2.1.1"
16681728

16691729
textlint-rule-ja-no-successive-word@^1.1.0:
16701730
version "1.1.0"
@@ -1680,6 +1740,15 @@ textlint-rule-ja-no-weak-phrase@^1.0.2:
16801740
morpheme-match "^1.0.1"
16811741
morpheme-match-all "^1.1.0"
16821742

1743+
textlint-rule-ja-unnatural-alphabet@2.0.1:
1744+
version "2.0.1"
1745+
resolved "https://registry.npmjs.org/textlint-rule-ja-unnatural-alphabet/-/textlint-rule-ja-unnatural-alphabet-2.0.1.tgz#fa95591312834a7788dbc6880e2f7a7e68633c00"
1746+
integrity sha512-n93V8qh6OKdh8OB6yLT+9Xl8DSoZ7gWi51tWdhlLEPIWgBm18nLMgm6Ck+nVc3eENOdRcQURWUpCGotI8wTemA==
1747+
dependencies:
1748+
"@textlint/regexp-string-matcher" "^1.0.2"
1749+
match-index "^1.0.1"
1750+
regx "^1.0.4"
1751+
16831752
textlint-rule-max-comma@^1.0.2:
16841753
version "1.0.4"
16851754
resolved "https://registry.yarnpkg.com/textlint-rule-max-comma/-/textlint-rule-max-comma-1.0.4.tgz#f555c97e0d3039ca7da06cfd1afad0e5f5899a37"
@@ -1758,11 +1827,12 @@ textlint-rule-no-hankaku-kana@^1.0.1:
17581827
match-index "^1.0.1"
17591828
textlint-rule-helper "^1.1.5"
17601829

1761-
textlint-rule-no-mix-dearu-desumasu@^3.0.2:
1762-
version "3.0.3"
1763-
resolved "https://registry.yarnpkg.com/textlint-rule-no-mix-dearu-desumasu/-/textlint-rule-no-mix-dearu-desumasu-3.0.3.tgz#ac4b8160b4f46644a4a40d62fe01d8db7670b7c3"
1830+
textlint-rule-no-mix-dearu-desumasu@^4.0.0:
1831+
version "4.0.0"
1832+
resolved "https://registry.npmjs.org/textlint-rule-no-mix-dearu-desumasu/-/textlint-rule-no-mix-dearu-desumasu-4.0.0.tgz#2f0c6268a183f615a80de7af1a6ca0b6a6ed09ed"
1833+
integrity sha512-hFI226aboOUq90g78g+Mn1AHyz5/dhRty/PHyD79TbQCXzDF45CFVJTSrDT+z8szzycYLo7ywo+oCdm1O5BRVQ==
17641834
dependencies:
1765-
analyze-desumasu-dearu "^3.1.0"
1835+
analyze-desumasu-dearu "^4.0.0"
17661836
textlint-rule-helper "^2.0.0"
17671837
unist-util-visit "^1.1.0"
17681838

0 commit comments

Comments
 (0)