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

Feature Request: Keep minor words in lowercase #16

Closed
Songyu-Wang opened this issue Sep 3, 2021 · 1 comment
Closed

Feature Request: Keep minor words in lowercase #16

Songyu-Wang opened this issue Sep 3, 2021 · 1 comment

Comments

@Songyu-Wang
Copy link

I know this is very complicated, but at least we can support a simplified version: lowercase all articles (a, an, the), coordinating conjunctions (and, or, but, …) and (short) prepositions (in, on, for, up, …). This should at least help with a decent amount of not grammar-focused computer science use cases

reference: https://titlecaseconverter.com/

@grncdr grncdr closed this as completed in 49a998e Oct 24, 2021
@grncdr
Copy link
Owner

grncdr commented Oct 24, 2021

This is implemented and released in 2.0.4. Because this library is used internationally by a variety of languages, the user is required to pass in their own skipWord callback or regular expression that determines if a word should be skipped. See these test cases for an example.

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

2 participants