From 34046adab64886643ced1a7a91f687dee69e7738 Mon Sep 17 00:00:00 2001 From: hsjoihs Date: Thu, 7 Nov 2024 00:37:04 +0900 Subject: [PATCH] Fix the error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 文字「が」見つかる (名詞 + be found) / 文字「を」見つける (find + 名詞) のどちらかであるべきなので、このような際のエラーメッセージに典型的に用いられる "Cannot find + 名詞" と表現。 - 両者を見せるエラーメッセージは This pair of (punctuation) marks などとするのがよい(cf. https://en.wikipedia.org/wiki/Guillemet )ので、その旨修正。 --- src/textlint-rule-no-unmatched-pair.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/textlint-rule-no-unmatched-pair.js b/src/textlint-rule-no-unmatched-pair.js index 8930f56..3a1e551 100644 --- a/src/textlint-rule-no-unmatched-pair.js +++ b/src/textlint-rule-no-unmatched-pair.js @@ -39,10 +39,10 @@ const report = (context) => { report( node, new RuleError( - `Not found pair character for ${contextLocation.pairMark.start}. + `Cannot find a pairing character for ${contextLocation.pairMark.start}. You should close this sentence with ${contextLocation.pairMark.end}. -This pair mark is called ${contextLocation.pairMark.key}.`, +This pair of marks is called ${contextLocation.pairMark.key}.`, { index: sentenceIndex - node.range[0] + contextLocation.index }