101
0/304
Loading content...
A publishing workflow stores user-submitted text snippets with inconsistent capitalization.
Table:
Task: For each row, transform content_text using these rules:
A word is any maximal sequence of non-space characters. Text rows contain only English letters and spaces.
Return columns in this exact order:
Final ordering:
Supported submission environments:
UserContent:
| content_id | content_text |
|------------|-----------------------------------|
| 1 | hello world of SQL |
| 2 | the QUICK brown fox |
| 3 | TOP rated programming BOOKS |[
{"content_id":1,"original_text":"hello world of SQL","converted_text":"Hello World Of Sql"},
{"content_id":2,"original_text":"the QUICK brown fox","converted_text":"The Quick Brown Fox"},
{"content_id":3,"original_text":"TOP rated programming BOOKS","converted_text":"Top Rated Programming Books"}
]Each word is normalized to title-style casing while word boundaries remain based on spaces.
UserContent:
| content_id | content_text |
|------------|----------------------------------|
| 10 | leadIng SPACES and Trailing |
| 11 | single |
| 12 | MIXED case TEXT |[
{"content_id":10,"original_text":" leadIng SPACES and Trailing ","converted_text":" Leading Spaces And Trailing "},
{"content_id":11,"original_text":"single","converted_text":"Single"},
{"content_id":12,"original_text":"MIXED case TEXT","converted_text":"Mixed Case Text"}
]All spaces are preserved exactly, including leading, trailing, and repeated separators.
UserContent:
| content_id | content_text |
|------------|-----------------|
| 21 | |
| 22 | a b c |
| 23 | x y |[
{"content_id":21,"original_text":"","converted_text":""},
{"content_id":22,"original_text":"a b c","converted_text":"A B C"},
{"content_id":23,"original_text":" x y ","converted_text":" X Y "}
]Empty strings stay empty, and single-letter words are capitalized correctly.
Constraints