Closed ggrossetie closed 3 years ago
One idea would be to declare nouns in nouns
:
{
options: {
words: [['utilize', 'use']],
nouns: [['reveal.js', 'reveal.js']],
}
}
Another idea would be to introduce a special case when we (only) want to check capitalization:
{
options: {
words: [['utilize', 'use']],
checkCapitalization: [
'reveal.js',
'Asciidoctor',
'Ruby',
'Node',
'AsciiDoc'
],
}
}
Yup, this behavior is expected: starting sentences with a small letter significantly reduces readability.
For proper nouns, I'd recommend https://github.com/sapegin/textlint-rule-terminology
For proper nouns, I'd recommend sapegin/textlint-rule-terminology
That's awesome, I totally missed it! Thank you so much for all the work you did on textlint :medal_sports:
The linter is trying to help by using a capital letter if the match was using standard capitalization (i.e., first letter capitalized). For instance, given the following definition:
It will replace: "Utilize Elm" by "Use Elm" (and not "use Elm" with lowercase "u").
But this does not produce the expected result when working with proper noun. For instance, if I want to make sure that "reveal.js" is using the correct capitalization (all lowercase):
The linter should replace "Reveal.js is great" by "reveal.js is great" but it won't work as expected. Arguably, both strategies can be useful so we might consider an option to enable/disable this feature. What do you think?