You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue seeks to change how suggest.js/generate replaces, switches, and appends characters of different cases from surrounding characters. This issue notes two problems in nspell/main where the results of suggest should be Sentence Case instead of lowercase/UPPERCASE and one problem in nspell/main where the results of suggest should be UPPERCASE instead of lowercase. I'm totally open to the idea that this issue should not be addressed, or should be addressed differently.
This issue is resolved in PR #45.
This issue is ignored in PR #39.
Summary
Because "Colour" suggests "Color":
"Aolor" should suggest "Color", not "color"
Because "COLOUR" suggests "COLOR":
"COLORFU" should suggest ""COLORFUL", not "colorful"
Because "canada" suggests "Canada":
"acnada" should suggest "Canada", not "CANADA"
Current Status
Here is the status of main. I've unchecked all inconsistent behaviors:
Usually, lowercase dictionary words inherit case of input:
usually return Sentence Case if input is Sentence Case:
This is usually true, ie "Colour" -> ["Color"]
This fails with "Ghandi" -> ["shandy", ...]
This fails with "Aolor" -> ["color", ...]
usually return UPPERCASE if input is UPPERCASE
This is usually true, ie "COLOUR" -> ["COLOR"]
This fails with "COLORFU" -> ["colorful"]
always return FuNkY caSE if input is FuNkY caSE
always return lowercase if input is lowercase
Sentence Case dictionary words usually return sentence case:
usually return Sentence Case if input is lowercase, Sentence Case, or FuNkY caSE:
This is usually true, ie "canada" -> ["Canada"]
This fails with "acnada" -> ["CANADA"]
This fails with "Acnada" -> ["CANADA"]
This fails for "CaNaDa" -> ["CANADA", ...]
always return UPPERCASE if input is UPPERCASE
UPPERCASE dictionary words always return UPPERCASE
FuNkY caSE dictionary words always return FuNkY caSE
The text was updated successfully, but these errors were encountered:
tvquizphd
changed the title
Inconsistent sentence case capitalization
Output case should follow more consistent rules
Jan 10, 2021
This issue seeks to change how
suggest.js/generate
replaces, switches, and appends characters of different cases from surrounding characters. This issue notes two problems innspell/main
where the results ofsuggest
should be Sentence Case instead of lowercase/UPPERCASE and one problem innspell/main
where the results ofsuggest
should be UPPERCASE instead of lowercase. I'm totally open to the idea that this issue should not be addressed, or should be addressed differently.This issue is resolved in PR #45.
This issue is ignored in PR #39.
Summary
Current Status
Here is the status of
main
. I've unchecked all inconsistent behaviors:"Colour" -> ["Color"]
"Ghandi" -> ["shandy", ...]
"Aolor" -> ["color", ...]
"COLOUR" -> ["COLOR"]
"COLORFU" -> ["colorful"]
"canada" -> ["Canada"]
"acnada" -> ["CANADA"]
"Acnada" -> ["CANADA"]
"CaNaDa" -> ["CANADA", ...]
The text was updated successfully, but these errors were encountered: