tidyverse / stringr

A fresh approach to string manipulation in R

Home Page:https://stringr.tidyverse.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Keep "I" capitalized in `str_to_sentence` for the "en" locale

ZIBOWANGKANGYU opened this issue · comments

Currently, the single upper-case letter "I" is changed to "i" if it appears in the middle of a sentence.

> stringr::str_to_sentence("THIS IS WHAT I MEAN!")
[1] "This is what i mean!"

It might be a good idea to keep "I" capitalized. Sorry if this discussion is more suitable for the stringi package.

This function is a very thin wrapper around stri_trans_totitle(), so stringi would be the write place to file an issue.