Something like description.replace(" ", "_") but that also removes / replaces punctuations and other whitespaces, and maybe other edge cases I haven't thought about.
The mapping can be lossy (you don't need to be able to reproduce the original string), it just needs to be a reasonable approximation to the given description, and of course - if there's a standard implementation somewhere that's a big bonus
Thanks!
Example:
"I'm thinking Avocado toast" -> "im_thinking_avocado_toast"
0 comments:
Post a Comment
Thanks