Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve capitalization of words #3

Open
talk2MeGooseman opened this issue Aug 14, 2020 · 0 comments
Open

Preserve capitalization of words #3

talk2MeGooseman opened this issue Aug 14, 2020 · 0 comments

Comments

@talk2MeGooseman
Copy link
Collaborator

Right now the entire string is being downcased and parsed to match against the dictionary of words. This helps with matching but the resulting output can remove important capitalization of words (ie NASA, FBI) and might result in confusing sentences.

Example of checking:

        capitalized = (word.slice(0,1) == word.slice(0,1).upcase)
        fully_capitalized = (word == word.upcase)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant