Wolfram Research

Function Repository Resource:

FromCamelCase (1.0.0) current version: 1.1.0 »

Source Notebook

Split camel case phrases into separate words

Contributed by: Jon McLoone  |  Jon McLoone

ResourceFunction["FromCamelCase"]["string"]

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

Examples

Basic Examples (1) 

Wolfram Language commands are always written in camel case:

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

Options (2) 

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

Version History

  • 1.1.0 – 09 May 2022
  • 1.0.0 – 29 November 2018

Related Resources

License Information