Skip to content

Incorrect Title Case Behavior With Quoted/Bracketed Text and After Colon (:) #36

@xianx

Description

@xianx

The Chrome extension has inconsistent Title Case conversion when text is inside quotation marks, parentheses, or appears after a colon (:). Some words remain lowercase when they should be capitalized.


Issues Observed

1. Words inside quotes or parentheses are not converted correctly

Input:

"cats"
(cats)
"cats dogs"
(cats dogs)

Expected Title Case Output:

"Cats"
(Cats)
"Cats Dogs"
(Cats Dogs)

Actual Output:

"cats"        // unchanged
(cats)        // unchanged
"cats Dogs"   // partially changed
(cats Dogs)   // partially changed

Problem:
Words inside quotes/brackets are either not capitalized or only partially capitalized.


2. Words after a colon (:) do not capitalize properly

Input:

some point: this a description

Expected Output (Title Case):

Some Point: This a Description

Actual Output:

Some Point: this a Description

Problem:
The first word after a colon stays lowercase even though Title Case rules say it should be capitalized.


Expected Behavior

  • Title Case should capitalize the first letter of every word, including words:

    • inside quotation marks
    • inside parentheses
    • appearing after punctuation such as :, (, ", '

Possible Cause

This seems related to how the extension uses the underlying change-case library.
The Title Case implementation might not be handling:

  • punctuation boundaries
  • word tokenization around quotes/brackets
  • capitalization of the first word after delimiters

Environment

  • Chrome Extension: Change Case
  • Issue found on: 2.6.1

Request

Please update the Title Case logic to properly handle:

  • words wrapped in quotes/brackets
  • words immediately following colon or similar punctuation

This will make the extension behave consistently with standard English Title Case rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions