Skip to content

Commit

Permalink
chore(outputMessage): イマイチ意図がわかりにくいエラーメッセージを改善
Browse files Browse the repository at this point in the history
エラー時何調の文体を期待しているか明確にした。
「〜が〜調」→「〜調の文体に、次の〜調の箇所があります: 〜」
textlint-ja#21
  • Loading branch information
KEINOS committed Apr 22, 2020
1 parent 3cfb480 commit b000bb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MixedChecker.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ export default class MixedChecker {
if (overType === "である") {
// である優先 => 最後の"ですます"を表示
return `"である"調 と "ですます"調 が混在
=> "${token.value}" がですます調
=> "である"調 の文体に、次の "ですます"調 の箇所があります: "${token.value}"
Total:
である : ${this.dearuCount}
ですます: ${this.desumasuCount}
`;
} else if (overType === "ですます") {
// ですます優先 => 最後の"である"を表示
return `"である"調 と "ですます"調 が混在
=> "${token.value}" がである調
=> "ですます"調 の文体に、次の "である"調 の箇所があります: "${token.value}"
Total:
である : ${this.dearuCount}
ですます: ${this.desumasuCount}
Expand Down

0 comments on commit b000bb2

Please sign in to comment.