Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Process strings to make them more URL friendly
| ResourceFunction["SlugifyString"][string] gives URL-friendly version of string. | 
| "ForceLowerCase" | True | force string to be lowercase | 
| IgnoreDiacritics | False | if True, transliterates string | 
| "SeparatorCharacter" | "-" | character that replaces non-word characters | 
Create a URL-friendly version of a string:
| In[1]:= | ![ResourceFunction["SlugifyString"]["This is a sample title"]](https://www.wolframcloud.com/obj/resourcesystem/images/b4c/b4c1cdc0-dfc2-4639-b422-cf1e9262f240/7aa9a3e77b5ac43d.png)  | 
| Out[1]= |   | 
By default, this function transliterates into plain ASCII:
| In[2]:= | ![ResourceFunction["SlugifyString"]["Vigenère Cipher"]](https://www.wolframcloud.com/obj/resourcesystem/images/b4c/b4c1cdc0-dfc2-4639-b422-cf1e9262f240/75b395dd9e5203f0.png)  | 
| Out[2]= |   | 
This function removes symbols, but keeps letters and numbers:
| In[3]:= | ![ResourceFunction[
 "SlugifyString"]["We\[CloseCurlyQuote]ve Come a Long Way in 30 Years (But You Haven\[CloseCurlyQuote]t Seen Anything Yet!)"]](https://www.wolframcloud.com/obj/resourcesystem/images/b4c/b4c1cdc0-dfc2-4639-b422-cf1e9262f240/22542cc3ff98b916.png)  | 
| Out[3]= |   | 
Don’t force lowercase:
| In[4]:= | ![ResourceFunction["SlugifyString"]["This Is A Sample Title", "ForceLowerCase" -> False]](https://www.wolframcloud.com/obj/resourcesystem/images/b4c/b4c1cdc0-dfc2-4639-b422-cf1e9262f240/5a44998b9b224646.png)  | 
| Out[4]= |   | 
Don’t transliterate:
| In[5]:= | ![ResourceFunction["SlugifyString"]["Vigenère Cipher", IgnoreDiacritics -> True]](https://www.wolframcloud.com/obj/resourcesystem/images/b4c/b4c1cdc0-dfc2-4639-b422-cf1e9262f240/41b347f4fc1bf69d.png)  | 
| Out[5]= |   | 
Use a different separator character:
| In[6]:= | ![ResourceFunction["SlugifyString"]["This is a sample title", "SeparatorCharacter" -> "_"]](https://www.wolframcloud.com/obj/resourcesystem/images/b4c/b4c1cdc0-dfc2-4639-b422-cf1e9262f240/5075df1a23426b00.png)  | 
| Out[6]= |   | 
Combining options:
| In[7]:= | ![ResourceFunction["SlugifyString"]["This Is A Sample Title", "ForceLowerCase" -> False, "SeparatorCharacter" -> ""]](https://www.wolframcloud.com/obj/resourcesystem/images/b4c/b4c1cdc0-dfc2-4639-b422-cf1e9262f240/7ddea26b86ea3e71.png)  | 
| Out[7]= |   | 
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License