A multiword identifier is a string composed of multiple words. It is often formatted in such a way to follow a case. This case is defined to be the pair of
- a delimeter, or a string to join words together
- a pattern, or how each letter in a word is cased (uppercase or lowercase)
Some familiar cases are listed below, along with their associated pattern and delimeter.
"_" | "-" | "" | |
---|---|---|---|
lowercase pattern | snake_case | kebab-case | flatcase |
UPPERCASE PATTERN | SCREAMING_SNAKE_CASE | COBOL-CASE | UPPERFLATCASE |
Capital Pattern | Train-Case | PascalCase | |
camel Pattern | camelCase |
Why does this site exist?
There is no definitive definition for a string case, nor is there a concensus on what each case should be called. This site is created to add some formality to the terminology and have a commonality across applications of string casing.
Not only is there multiple names for each case, but some cases aren't classified. The blanks in the chart above shows some string cases that are unnamed. Perhaps this site will prompt discussion to determine names, should it be necessary.