Text Formatting (textcase)
Format text in various styles like title case, sentence case, lower case, upper case, camel case, or remove punctuations.
Text Formatting
Purpose
The Text Formatting function allows you to change the case of text, format it as a title, sentence, uppercase, lowercase, or remove punctuation.
Use Cases
- When you want to capitalize the first letter of each word in a sentence.
- When you need to convert text to all uppercase or all lowercase.
- When you want to remove punctuation from text.
How to Use
- Enter the text you want to format in the Text field.
- Select the desired format from the dropdown menu.
- Check the box if you want to ignore common words like "and," "the," etc.
- Enter any abbreviations you want to exclude from formatting in the Abbreviations field.
- Click the "Format Text" button to see the formatted text.
Input Values
- Text: Enter the text you want to format.
- Format: Select the desired format (Title Case, Sentence Case, Uppercase, Lowercase, First Letter, or Snake Case).
- Ignore Stopwords: Check this box to ignore common words.
- Abbreviations: Enter any abbreviations to exclude from formatting.
Output Values
- Formatted Text: The text formatted according to the selected format.
Any other Instruction
- Make sure to review the formatted text before using it.
- Experiment with different formats to see which one suits your needs best.
Steps of Calculation
The function takes the input text and applies the selected format. It then returns the formatted text as output.
Technical Parameter names
text, format, ignore_stopwords, abbreviations
Return Values
Formatted Text
Example Expressions
You can use the following expressions to directly evaluate in a non-interactive manner using eval():
textcase("hello world", format='t')
textcase("HELLO WORLD", format='f', ignore_stopwords=True, abbreviations='FYI, ASAP')
Click on Help icon to open the help page on a separate window.