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
130130- [ (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 ")
131131- [ 助詞の連続使用を避け分かりやすい文章を書こう! - 有限な時間の果てに] ( http://popoon.hatenablog.com/entry/2014/07/11/232057 " 助詞の連続使用を避け分かりやすい文章を書こう! - 有限な時間の果てに ")
132132- [ 作文入門] ( http://www.slideshare.net/takahi-i/ss-13429892 " 作文入門 ")
133-
133+ - [ 形態素解析ツールの品詞体系 ] ( http://www.unixuser.org/~euske/doc/postag/index.html#chasen " 形態素解析ツールの品詞体系 ")
134134
135135## Contributing
136136
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ export default function (context, options = {}) {
116116 }
117117 // if found differenceIndex less than
118118 // tokes are sorted ascending order
119- var reduder = ( prev , current ) => {
119+ tokens . reduce ( ( prev , current ) => {
120120 const startPosition = countableTokens . indexOf ( prev ) ;
121121 const otherPosition = countableTokens . indexOf ( current ) ;
122122 // 助詞token同士の距離が設定値以下ならエラーを報告する
@@ -136,8 +136,7 @@ export default function (context, options = {}) {
136136 report ( node , new RuleError ( `一文に二回以上利用されている助詞 "${ joshiName } " がみつかりました。` , padding ) ) ;
137137 }
138138 return current ;
139- } ;
140- tokens . reduce ( reduder ) ;
139+ } ) ;
141140 } ) ;
142141 } ;
143142 sentences . forEach ( checkSentence ) ;
You can’t perform that action at this time.
0 commit comments