File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ textlint --rule no-doubled-joshi README.md
130
130
- [ (Microsoft Word - JCLWorkshop2013_2\214\303\213{.doc) - JCLWorkshop_No3_02.pdf] ( https://www.ninjal.ac.jp/event/specialists/project-meeting/files/JCLWorkshop_no3_papers/JCLWorkshop_No3_02.pdf " (Microsoft Word - JCLWorkshop2013_2\214\303\213{.doc) - JCLWorkshop_No3_02.pdf ")
131
131
- [ 助詞の連続使用を避け分かりやすい文章を書こう! - 有限な時間の果てに] ( http://popoon.hatenablog.com/entry/2014/07/11/232057 " 助詞の連続使用を避け分かりやすい文章を書こう! - 有限な時間の果てに ")
132
132
- [ 作文入門] ( http://www.slideshare.net/takahi-i/ss-13429892 " 作文入門 ")
133
-
133
+ - [ 形態素解析ツールの品詞体系 ] ( http://www.unixuser.org/~euske/doc/postag/index.html#chasen " 形態素解析ツールの品詞体系 ")
134
134
135
135
## Contributing
136
136
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ export default function (context, options = {}) {
116
116
}
117
117
// if found differenceIndex less than
118
118
// tokes are sorted ascending order
119
- var reduder = ( prev , current ) => {
119
+ tokens . reduce ( ( prev , current ) => {
120
120
const startPosition = countableTokens . indexOf ( prev ) ;
121
121
const otherPosition = countableTokens . indexOf ( current ) ;
122
122
// 助詞token同士の距離が設定値以下ならエラーを報告する
@@ -136,8 +136,7 @@ export default function (context, options = {}) {
136
136
report ( node , new RuleError ( `一文に二回以上利用されている助詞 "${ joshiName } " がみつかりました。` , padding ) ) ;
137
137
}
138
138
return current ;
139
- } ;
140
- tokens . reduce ( reduder ) ;
139
+ } ) ;
141
140
} ) ;
142
141
} ;
143
142
sentences . forEach ( checkSentence ) ;
You can’t perform that action at this time.
0 commit comments