← All nodes
Unstructured Text

Remove Punctuation

Delete punctuation marks from your text while keeping letters, numbers, symbols and spacing.

When to use it

Typical uses: Preparing text for word-frequency or keyword analysis; Creating clean datasets for machine learning; Normalising phrases before comparing them.

In a pipeline

Settings

SettingTypeRequiredDefault or hint
Text columnselect—Text
Keep apostrophes (don't, it's)checkbox—true
Generate New Columncheckbox—false
New Column Nametext—Default: <column> Result
Insert Afterselect—After the column
When a value cannot be convertedselect—stop

Example

Remove Punctuation: an example

    Text arriving
    Text
    "Wait," she said. "Don't go, not yet!" (It's 5:30 p.m.)
    The text after this node
    Text
    Wait she said Don't go not yet It's 530 pm

    Worth knowing

    • Are symbols like $ and % removed? No. They are symbols rather than punctuation. Use Remove Special Characters to remove those too.
    • Why did the time 5:30 become 530? The colon is a punctuation mark, so it is removed. Keep this in mind for times, decimals and ratios.
    • Does it work for languages other than English? Yes. It uses the Unicode definition of punctuation, which covers most writing systems.
    • Works on any text column, not only Text Input's: pick it under Text column. Tick Generate New Column to keep the original next to the result.

    Others in Unstructured Text