Expand description
Functions for transforming a list of words.
A pattern is a function that maps a list of words into another list after changing the casing of each letter. How a patterns mutates each letter can be dependent on the word the letters are present in.
Functions§
- alternating
- Makes each letter of each word alternate between lowercase and uppercase.
- camel
- Makes the first word lowercase and the remaining capitalized.
- capital
- Makes the first letter of each word uppercase and the remaining letters of each word lowercase.
- lowercase
- Makes all words lowercase.
- noop
- The no-op pattern performs no mutations.
- sentence
- Makes the first word capitalized and the remaining lowercase.
- toggle
- Makes the first letter of each word lowercase and the remaining letters of each word uppercase.
- uppercase
- Makes all words uppercase.