# Sentence case formatting

**URL:** <https://discourse.citationstyles.org/t/sentence-case-formatting/1217>\
**Category:** CSL Development\
**Created:** [February 3, 2014, 2:40pm UTC](https://discourse.citationstyles.org/t/sentence-case-formatting/1217 "2014-02-03T14:40:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sylvester\_Keil](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@Sylvester\_Keil](https://discourse.citationstyles.org/u/Sylvester_Keil)\
**Post date:** [February 3, 2014, 2:40pm UTC](https://discourse.citationstyles.org/t/sentence-case-formatting/1217/1 "2014-02-03T14:40:55Z")

</div>

Dear all,

I have a question about textcase formatting in this test case:

[https://bitbucket.org/bdarcus/citeproc-test/src/ab136a6aa8f2/processor-tests/humans/textcase\_SentenceCapitalization.txt](https://bitbucket.org/bdarcus/citeproc-test/src/ab136a6aa8f2/processor-tests/humans/textcase_SentenceCapitalization.txt)

Where the string “This is a Pen that…” is expected to match “This is a  
pen that…” in text-case “sentence”. I’m confused about the word "pen"  
here.

In the spec it says:

For lower or mixed case strings, the first character of the first word  
is capitalized if the word is lowercase. The case of all other words  
stays the same.

So shouldn’t “Pen” still be capitalized, since the case of all other  
words stays the same?

Thanks!

Sylvester

---

<div class="post-metadata">

**Author:** ![Sebastian\_Karcher](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/sebastian_karcher/32/176_2.png) [@Sebastian\_Karcher](https://discourse.citationstyles.org/u/Sebastian_Karcher)\
**Post date:** [February 3, 2014, 2:49pm UTC](https://discourse.citationstyles.org/t/sentence-case-formatting/1217/2 "2014-02-03T14:49:52Z")

</div>

odd. We’ve always had sentence-case lowercasing everything but the first  
letter. That’s one of the reasons we discourage people from using it.  
@Rintze - do you remember if this was always in the specs like this.

---

<div class="post-metadata">

**Author:** ![Sylvester\_Keil](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@Sylvester\_Keil](https://discourse.citationstyles.org/u/Sylvester_Keil)\
**Post date:** [February 3, 2014, 4:16pm UTC](https://discourse.citationstyles.org/t/sentence-case-formatting/1217/3 "2014-02-03T16:16:05Z")

</div>

Somewhat related to this, for title case conversion the spec says:

For uppercase strings, the first character of the string remains  
capitalized. All other letters are lowercased.

Yet, there are multiple test cases which do not touch uppercase strings,  
e.g.:

[https://bitbucket.org/bdarcus/citeproc-test/src/ab136a6aa8f2/processor-tests/humans/textcase\_CapitalsUntouched.txt](https://bitbucket.org/bdarcus/citeproc-test/src/ab136a6aa8f2/processor-tests/humans/textcase_CapitalsUntouched.txt)

[signature.asc](https://canada1.discourse-cdn.com/flex029/uploads/citationstyles/original/1X/2a05996ca0afeacdea0db41bf548c04289bb6a00.asc) (198 Bytes)

---

<div class="post-metadata">

**Author:** ![Rintze\_Zelle](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/rintze_zelle/32/175_2.png) [@Rintze\_Zelle](https://discourse.citationstyles.org/u/Rintze_Zelle)\
**Post date:** [February 4, 2014, 12:03am UTC](https://discourse.citationstyles.org/t/sentence-case-formatting/1217/4 "2014-02-04T00:03:57Z")

</div>

The change for sentence case was made based on this thread:

> **[Problems with title case](https://forums.zotero.org/discussion/23504/)**
>
> Hi there, 
>  
> Here's my issue: I have a \_lot\_ of primary texts stored with short title abbreviations like "S" or "RN" or "ToB".

The prescribed algorithm could probably be improved, though.

Rintze
