Constants in code are shouted words joined by underscores. “Odd socks in the dryer.” becomes ODD_SOCKS_IN_THE_DRYER. The period is gone. The spaces are gone. Each word is uppercase, and the underscore is the only separator.
The split is the same one camelCase uses. “XMLHttp request” becomes XML_HTTP_REQUEST, because the capital boundary inside XMLHttp is a word boundary before the letters are uppercased. Hyphens and existing underscores also split words. An apostrophe is removed, so it does not survive as a character between letters.
Uppercase alone would have produced “ODD SOCKS IN THE DRYER.” with spaces and a period. That is a different page. CONSTANT_CASE is for an identifier, not for a headline. Accents stay attached to their letters. They are not transliterated.
Odd socks in the dryer.
ODD_SOCKS_IN_THE_DRYER No period, no spaces. “in” and “the” are full words in the name.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
The period is not a word, so it is dropped when the words are joined. ODD_SOCKS_IN_THE_DRYER is five words.
XML_HTTP_REQUEST. The capital boundary inside XMLHttp splits it before the letters are uppercased.
No. Uppercase keeps spaces and punctuation: ODD SOCKS IN THE DRYER. This page replaces the gaps with underscores and drops the period.
No. The accent stays on the letter. The slug maker is what strips accents.
Underscores are separators, so the words are split and rejoined. A single word is simply uppercased.