crate-ci / typos

Source code spell checker
Apache License 2.0
2.63k stars 105 forks source link

invokable -> invocable false positive? #1065

Open justanotheranonymoususer opened 3 months ago

justanotheranonymoususer commented 3 months ago

English is not my native language, but I saw invokable in code, and looks like both invokable and invocable are OK? https://en.wiktionary.org/wiki/invocable https://en.cppreference.com/w/cpp/utility/functional/invoke

epage commented 3 months ago

I wish wikitionary had citations. Google always tries to correct invokable to invocable. There is no varcon entry for this. Oxford English Dictionary does not recognize invokable.

Some dictionaries, like Firefox and Libreoffice, don't recognize either word.

not-my-profile commented 3 months ago

I think Google Ngram's is a good tool to judge whether something is a typo or just less common.

invocable,invokable: it appears to be less common but common enough to be a spelling variant.

justanotheranonymoususer commented 1 month ago

Yeah, Googling for it shows that it's used in docs and identifiers of high profile companies such as Microsoft, Google and Oracle.

I think that calling it a typo is a stretch given that broad usage.