No no. parameterize is a lossy transformation, you cannot return it.
Here is an example. When you convert
My Awesome Pizza
in
my-awesome-pizza
you don't know if the original string was
My Awesome Pizza MY AWESOME PIZZA
etc .. This is a simple example. However, as you can see from the source code , some characters are deleted or converted to a separator (for example, commas), and you cannot recover them.
If you just want an approximate transformation, just convert the strokes to spaces, trim a few spaces and apply the appropriate case transformation.
source share