Skip to content

Commit fe0c823

Browse files
committed
chore(readme): add 参考文献
1 parent 4c27559 commit fe0c823

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/no-doubled-joshi.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)