elijah-potter / harper

The Grammar Checker for Developers
https://writewithharper.com
Apache License 2.0
1.09k stars 23 forks source link

bug: lowercased dictionary words asking to be capitalized #77

Open lukasmwerner opened 5 months ago

lukasmwerner commented 5 months ago

When I added mTLS to my global dictionary the capitalization linter still attempts to capitalize the m with the diagnostic: This sentence does not start with a capital letter

Sample test case:

    - mTLS: mutual TLS
elijah-potter commented 5 months ago

The way I see it, the only situations where a sentence should not begin capitalized is if the first word is 1) a proper noun and 2) the given proper noun begins with a lowercase letter.

While the dictionary does include proper nouns, its goal is not to correct their capitalization. As such, I think the best course of action for this issue is to create a special dictionary for proper nouns, instances of which have strict capitalization requirements and may override the sentence capitalization linter.

I'll continue ruminating on the topic and update here when I have a final solution. In the meantime, feel free to shout any and all potential ideas in my direction.

Thank you for letting me know about this.