A slug is the piece of a URL a person can read. This page splits the title into words, strips accents, drops apostrophes, lowercases, and joins with hyphens. “Odd socks in the dryer.” becomes odd-socks-in-the-dryer. The period is not a word and does not leave a trailing hyphen. “in” and “the” stay. There is no stop-word list.
Accents are the difference between this page and kebab-case. “Crème brûlée socks!” becomes creme-brulee-socks here. Kebab-case returns crème-brûlée-socks. The slug runs the title through compatibility decomposition and deletes the combining marks, so é becomes e and û becomes u. An exclamation mark disappears. “XMLHttp request” still splits on the capital boundary, the same way the code cases do, and then the pieces are hyphenated.
The result is a string, not a check that the URL is free. Two titles can slug to the same characters once the accents and punctuation are gone. If the accent should remain visible in the path, use kebab-case and accept that some servers will encode it.
Odd socks in the dryer.
odd-socks-in-the-dryer Five words, no period. The same ASCII string kebab-case produces for this particular sentence.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
odd-socks-in-the-dryer. The period is dropped. in and the are kept.
On this sentence they match. On “Crème brûlée socks!” the slug is creme-brulee-socks and kebab-case is crème-brûlée-socks.
No. There is no list of words to drop. “the” becomes its own segment.
It is removed inside the word, so a contraction does not leave a hyphen or a quote in the slug.
No. It only rewrites the title. Two different titles can land on one slug after accents and punctuation disappear.