Skip to content

Commit

Permalink
Fix the error message
Browse files Browse the repository at this point in the history
- 文字「が」見つかる (名詞 + be found) / 文字「を」見つける (find + 名詞) のどちらかであるべきなので、このような際のエラーメッセージに典型的に用いられる "Cannot find + 名詞" と表現。
- 両者を見せるエラーメッセージは This pair of (punctuation) marks などとするのがよい(cf. https://en.wikipedia.org/wiki/Guillemet )ので、その旨修正。
  • Loading branch information
hsjoihs committed Nov 6, 2024
1 parent 269d0c6 commit 34046ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/textlint-rule-no-unmatched-pair.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 34046ad

Please sign in to comment.