A compound word is formed by joining together two or more other words.
A closed-form compound word (e.g. keyboard) does that without any additional punctuation. These are truly words in their own right, and so should be treated as such when applying programming casing conventions such as camelCase
, PascalCase
, kebab-case
, or snake_case
.
Open-form (e.g. living room) and hyphenated-form (e.g. long-term) compound words are less susceptible to incorrect casing.