Normalisers
A normaliser turns a value extracted into a custom field into a key, and Docwize matches rows and documents on that key. Two spellings of the same thing, such as HOF0055568 and Hof.55568, get the same key and so link to the same record. Normalisers lists the company's own normalisers: named recipes of steps that can be chosen on any field. Users open it to build a recipe for values the built-in normalisers do not match well, to test it on real values, or to see what a change would do to the fields that already use it.
A normaliser is chosen on a field in the template builder, under the field's Graph role. Normalisers holds the recipes, and the Used by column shows which fields have chosen each one.
Access via New > Custom Fields & Configuration > Normalisers. The Normalisers button on the Relations screen opens the same list.
Who configures this
Users with the View Graph Normalisers permission. The Ontology designer and Relations tiles beside it need View Graph Ontology and View Graph Relation Types. See Permissions for how to assign it.
The normaliser list
| Column | What it shows |
|---|---|
| Name | The normaliser's name, with its description below. |
| Field value | What a field stores when it uses the normaliser: custom: followed by the normaliser's slug. |
| Steps | The steps in the order they run. |
| Version | The version number. It goes up each time the steps are changed and saved. |
| Used by | How many fields use the normaliser. Point to the number to see them as Template / Field. Not used means no field uses it. |
| Status | Active, or Inactive for a normaliser that is no longer offered on fields (see Deactivate a normaliser). |
Select a row to open the normaliser.
The names and descriptions are part of each company's own setup, so they appear as they were entered, in any language.
Search the list
Type in Search normalisers to find normalisers by their name, slug or description. When nothing matches, select Clear Filter to clear the search.
Normaliser settings
Select New normaliser, or a normaliser in the list, to open its settings. The window has Details and Steps on the left, and Test on the right.
Details
| Setting | What it does |
|---|---|
| Name | The name shown in the list and on the field. Required. |
| Slug | The normaliser's code. It is made from the name as the name is typed, and can be changed: 2 to 64 lower-case letters, digits or hyphens, starting with a letter. Fields store it as custom:<slug>. Once fields use the normaliser, the slug can no longer change. |
| Description | What the normaliser is for. It is shown in the list and when the normaliser is chosen on a field. |
| Active | Shown for a saved normaliser. Clear it to deactivate the normaliser, or tick it to turn an inactive one back on. |
Steps
The steps run from top to bottom, and the key is what the last step leaves. Drag a step by its handle to move it, and select the bin to remove it.
A new normaliser starts with the steps of Identifier. Start from replaces all the steps with those of a built-in normaliser:
| Start from | Steps |
|---|---|
| Exact | Fold case and accents |
| Identifier | Fold case and accents, Letters and digits only, Strip leading zeros |
| Organisation | Fold case and accents, Drop bracketed parts, Drop legal forms, Drop stop words |
| Regular expression | Keep a pattern match |
Add a step adds a step at the end:
| Step | What it does |
|---|---|
| Fold case and accents | Makes the value upper case, drops accents and collapses spaces. |
| Letters and digits only | Drops spaces and punctuation: UME2-SS-0010 becomes UME2SS0010. |
| Strip leading zeros | Drops the leading zeros of every number in the value: HOF0055568 becomes HOF55568. |
| Drop bracketed parts | Removes parts in round or square brackets: Flysafair (640) becomes Flysafair. |
| Drop legal forms | Removes words such as Pty, Ltd, Inc and GmbH. |
| Drop stop words | Removes the words of the lookup list chosen on the step. With no list chosen, it uses the stop list set on the field. |
| Apply aliases | Replaces a short name with the full one, using the lookup list chosen on the step (see Alias lists). |
| Keep a pattern match | Keeps the part of the value that the regular expression in Pattern matches. Group can name which bracketed group of the pattern to keep. A value the pattern does not match gets no key. |
| Keep the last digits | Keeps the last digits of the value. Digits sets how many, from 1 to 64; it starts at 6. |
| Match the exact key only | Leaves the value as it is, but stops values matching on shared digits: numbers that differ only by a date or a sequence number stay different. |
Save stays unavailable until the normaliser has a name, a valid slug and at least one step, and while a step shows a problem in red. A step shows a problem when it needs a lookup list, a pattern or a number of digits that is missing or not valid.
Test
Type or paste values into Values to test, one per line (up to 200) to see the key each one gets with the current steps. The keys update as the steps change, before anything is saved.
| Part | What it shows |
|---|---|
| Value and Key | Each value and its key. Values that share a key are marked with the same coloured dot. No key means the steps left nothing, for example when a pattern does not match. |
| Arrow beside a value | Shows each step's output for that value, which shows the step that changed it. |
| Values that now match | Each key that more than one value shares, with those values. These values will link to the same record. |
When a saved normaliser is opened, the test box is filled in with the latest distinct values extracted into the first field that uses it (up to 20), so the recipe can be tried on real data.
Alias lists
An alias list maps a short name to the full one, such as NT => Northwind Traders, so that both get the same key. Add alias list creates the list without leaving the window.
Type a List name, then the aliases under Values, one per line, one per line as <as written> => <full name>. Select Create list. The list is created as a lookup list, and an Apply aliases step that reads it is added to the steps. Both sides of each alias are keyed by the steps before the Apply aliases step.
Normalisers in use
When fields use a normaliser, its slug is fixed, and Impact in its settings lists the fields that use it (the first eight).
Changing the steps of a normaliser in use changes the keys of those fields. As soon as the steps change, Impact shows Saving changes the keys of fields that use it, with how many of the fields' current values get a new key and how many existing graph links carry a key that changes. Save becomes Save as version N+1. Check the numbers before saving, and select Cancel to leave the normaliser as it was.
Changing only the name, the description or Active does not change the keys or the version.
Deactivate a normaliser
A normaliser cannot be removed. Delete deactivates it: it shows Inactive in the list, it is no longer offered when a field's normaliser is chosen, and its slug stays taken. Delete is offered only on an active normaliser, and only once it has been saved.
A normaliser that fields use cannot be deactivated. The delete window then says how many fields use it; change those fields to another normaliser first.
To turn an inactive normaliser back on, open it, tick Active and select Save.
Choosing a normaliser on a field
A field gets a normaliser in the template builder, under its Graph role, when its Role is Identity key, Entity mention or Document reference. The Normaliser list groups the normalisers under Built-in and Custom, with each one's description. Inactive normalisers are not offered.
- Below the list, Keys: previews the keys the chosen normaliser gives the field's values.
- Edit (pencil icon) beside a custom normaliser opens its settings.
- New normaliser… at the end of the list opens a new normaliser named from the text typed in the list, with the test box filled in with the field's values.
See Custom Field Templates for the template builder.
How to build and test a normaliser
Example: Building a normaliser and testing it on three spellings of one code
| Step | What to do |
|---|---|
| 1 | Open New > Custom Fields & Configuration > Normalisers. |
| 2 | Select New normaliser. |
| 3 | Type a Name. Change the Slug if needed, and add a Description. |
| 4 | Under Steps, choose a built-in in Start from, or keep the steps it starts with. |
| 5 | Type some values under Test, including different spellings of the same thing. |
| 6 | Add steps with Add a step, and remove or drag steps, until the spellings that mean the same thing share a key under Values that now match. |
| 7 | Select Save. The normaliser is added to the list with Not used, and can now be chosen on a field. |
How to check the impact of a change
Example: Checking what a new step does to the fields that use a normaliser
| Step | What to do |
|---|---|
| 1 | Open New > Custom Fields & Configuration > Normalisers. |
| 2 | Select the normaliser. |
| 3 | Change the steps. |
| 4 | Under Impact, read how many current values get a new key and how many graph links change. |
| 5 | Select Save as version N+1 to keep the change, or Cancel to leave the normaliser as it was. |
How to deactivate a normaliser
| Step | What to do |
|---|---|
| 1 | Open New > Custom Fields & Configuration > Normalisers. |
| 2 | Select the normaliser. |
| 3 | Select Delete, then Delete to confirm. The normaliser shows Inactive in the list. |
To turn it back on, open it, tick Active and select Save.
Troubleshooting
| Issue | Detail |
|---|---|
| The Normalisers tile is not shown | The tile needs the View Graph Normalisers permission. |
| Save is unavailable | The name or slug is missing or not valid, there are no steps, or a step shows a problem in red. |
| The slug cannot be changed | Fields use the normaliser. Make a new normaliser with the new slug instead. |
| Delete is refused | Fields use the normaliser. Choose another normaliser on those fields first. |
| A normaliser is not offered on a field | It is inactive, or the field's Role is not Identity key, Entity mention or Document reference. |
| A value gets No key | A Keep a pattern match step's pattern does not match it, or the steps removed every character. |