Wolfram Research

Function Repository Resource:

FromCamelCase

Source Notebook

Split camel case phrases into separate words

Contributed by: Jon McLoone

ResourceFunction["FromCamelCase"]["string"]

inserts spaces into string to convert camel case phrases into separate words.

Examples

Basic Examples

Wolfram Language commands are always written in camel case:

In[1]:=
ResourceFunction["FromCamelCase"]["ListLinePlot"]
Out[1]=

Options

By default, FromCamelCase will only split the words with spaces:

In[2]:=
ResourceFunction["FromCamelCase"]["ListLinePlot"]
Out[2]=

The option ToLowerCase will also put all but the first word into lowercase:

In[3]:=
ResourceFunction["FromCamelCase"]["ListLinePlot", ToLowerCase -> True]
Out[3]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

License Information