Where a name is cut into words
The code styles first split the text into words, then join them again. Words break at spaces, underscores, hyphens and other symbols, but also where a lower-case letter or digit meets a capital, and where a run of capitals gives way to a capitalised word. So getUserID becomes get_user_id in snake_case, and “XMLHttpRequest handler” becomes xml_http_request_handler.
Names already written in another style convert directly: already_snake_case becomes alreadySnakeCase, kebab-case-name becomes KebabCaseName. Each line is its own name, so two lines “first name” and “last name” give firstName and lastName on two lines. Korean has no case, so Korean words are simply joined: “주문 목록 order list” in camelCase is 주문목록OrderList.
Title case keeps the short words small
Title case lowers a, an, and, as, at, but, by, for, in, nor, of, on, or, per, the, to, via and vs when they fall inside a line: articles, conjunctions and prepositions of three letters or fewer. The first and last word of a line, and the word after a colon or full stop, are always capitalised.
So “the lord of the rings” becomes The Lord of the Rings, and “State-of-the-art design: a guide to the basics” becomes State-of-the-Art Design: A Guide to the Basics, each part of a hyphenated word judged on its own.
House styles differ on longer prepositions. The novel is usually printed Gone with the Wind, but with is not on the tool’s list, so it writes Gone With the Wind. If you follow a particular style guide, check prepositions of four letters or more against it.