Text Cleanse

About Text Cleanse

The Text Cleanse operation tidies text values in the columns you select, so that values that should be the same really are the same. For example, use it to:

For a forgiving join, apply the same actions to the join point on both sides of the Join. The Join stage can also cleanse join points itself.

Turn on the actions you need:

Actions run in the order shown
The actions you turn on are applied one after another, from top to bottom, in the order they appear in the operation. Each action works on the result of the one before, so earlier actions can change what later ones do.

For example, with Punctuation, Remove whitespace between initials and Collapse repeated whitespace turned on, J. R. R. Tolkien is cleansed like this:

Step
Result
Punctuation
J R R Tolkien
Remove whitespace between initials
JRR Tolkien
Collapse repeated whitespace
JRR Tolkien

In the examples on this page, marks a space wherever spacing matters.

Select columns

Top of the Text Cleanse operation. The Columns panel lists the selected columns Insured, Street Address and Claim Number. Below it, Output to new columns is turned on, with new columns named [Column Name]_Cleansed.

Add the columns you want to cleanse to the Columns panel. The actions you turn on apply to every selected column, except Extract ID, which only applies to columns with a detected ID.

Turn on Output to new columns to write the cleansed values to new columns, named [Column Name]_Cleansed. When it’s turned off, the cleansed values overwrite the original columns.

Extract ID

Extract ID panel, reading Extract detected IDs from text strings. Applies only to columns with IDs detected. Below is a switch, turned off, for the Misc-ID type with the format AAA0000000, which applies to the Claim Number column.

Extract ID pulls an ID out of the text around it, using the ID type already detected and assigned to the column.

Examples

For a column assigned the Misc-ID type, format AAA0000000:

Input
Output
Claim reference: ABC1234567 (renewal)
ABC1234567
CLM0012345 reopened
CLM0012345

Special characters

Special characters panel with the Substitute non-standard characters switch turned off. The description reads Accents and special characters will be replaced with the closest plain-text alternative. Example: Crème brûlée becomes Creme brulee.

Substitute non-standard characters replaces accented Latin letters, and other supported Latin letter forms, with their closest plain-text alternative.

Examples

Input
Output
Crème brûlée
Creme brulee
Müller
Muller
Straße
Strasse

Punctuation

Punctuation panel with the Replace punctuation with spaces switch turned off. Example: North-West becomes North West.

Replace punctuation with spaces replaces punctuation and symbols with spaces. Underscores are kept.

This can leave repeated spaces, or spaces at the start or end of a value. Turn on Collapse repeated whitespace and Trim leading/trailing whitespace to remove them.

Examples

Input
Output
North-West
North West
Smith & Sons
Smith Sons
Policy_ref/2024
Policy_ref 2024

Alphanumerics

Alphanumerics panel with the Strip to Alphanumeric characters switch turned off. The description reads Remove punctuation and symbols, keeping letters, numbers, underscores and whitespace. Example: Order_ID: #123! becomes Order_ID 123.

Strip to Alphanumeric characters removes every character except the letters A–Z and a–z, the digits 0–9, underscores and whitespace.

Examples

Input
Output
Order_ID: #123!
Order_ID 123
Crème
Crme
North-West
NorthWest
25.50
2550

The last three examples have Substitute non-standard characters and Replace punctuation with spaces turned off.

Whitespace

Three actions tidy up spaces, tabs and line breaks. They run in the order shown.

Remove whitespace between initials

Remove whitespace between initials switch, turned off. Example: J R R Tolkien becomes JRR Tolkien, with the spaces between the initials highlighted.

Removes whitespace between single letters that sit next to each other, in upper or lower case. Tabs and line breaks between them are removed too.

Examples

Input
Output
J R R Tolkien
JRR Tolkien
a b smith
ab smith
Type A B
Type AB
Room 1 2
Room 1 2

Collapse repeated whitespace

Collapse repeated whitespace switch, turned off. Example: Lorem ipsum with two spaces becomes Lorem ipsum with one space, with the spaces highlighted.

Replaces each run of whitespace with a single ordinary space. Single tabs and line breaks become spaces too.

Examples

Input
Output
North West
North West
Smith Sons
Smith Sons

Trim leading/trailing whitespace

Trim leading/trailing whitespace switch, turned off. Example: Lorem ipsum with a space at each end becomes Lorem ipsum, with the end spaces highlighted.

Removes whitespace from the start and end of each value. Whitespace inside the value is left as it is.

Examples

Input
Output
North West
North West
Claim 42
Claim 42
North West
North West

Case

Case panel with the Change case switch turned off and UPPERCASE selected. Example: Lorem ipsum becomes LOREM IPSUM.

Change case converts text to the case you select: lowercase, Sentence case, Title Case or UPPERCASE.

Examples

Case
Input
Output
lowercase
Lorem Ipsum
lorem ipsum
Sentence case
lorem ipsum
Lorem ipsum
Title Case
lorem ipsum
Lorem Ipsum
UPPERCASE
Lorem ipsum
LOREM IPSUM