Skip to main content

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.

The Custom Fields & Configuration section, with the Ontology designer, Relations, Normalisers and Graph review tiles at the end

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​

The Normalisers screen: the search box, the hint and New normaliser at the top, and the list of normalisers with their name and description, field value, steps, version, Used by and status
ColumnWhat it shows
NameThe normaliser's name, with its description below.
Field valueWhat a field stores when it uses the normaliser: custom: followed by the normaliser's slug.
StepsThe steps in the order they run.
VersionThe version number. It goes up each time the steps are changed and saved.
Used byHow many fields use the normaliser. Point to the number to see them as Template / Field. Not used means no field uses it.
StatusActive, 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.

The New normaliser window: name DOCS Supplier codes EN and the slug made from it under Details, five steps under Steps with Start from, Add a step, Add alias list and Add stop words, and the empty Test box on the right

Details​

SettingWhat it does
NameThe name shown in the list and on the field. Required.
SlugThe 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.
DescriptionWhat the normaliser is for. It is shown in the list and when the normaliser is chosen on a field.
ActiveShown 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 fromSteps
ExactFold case and accents
IdentifierFold case and accents, Letters and digits only, Strip leading zeros
OrganisationFold case and accents, Drop bracketed parts, Drop legal forms, Drop stop words
Regular expressionKeep a pattern match

Add a step adds a step at the end:

StepWhat it does
Fold case and accentsMakes the value upper case, drops accents and collapses spaces.
Letters and digits onlyDrops spaces and punctuation: UME2-SS-0010 becomes UME2SS0010.
Strip leading zerosDrops the leading zeros of every number in the value: HOF0055568 becomes HOF55568.
Drop bracketed partsRemoves parts in round or square brackets: Flysafair (640) becomes Flysafair.
Drop legal formsRemoves words such as Pty, Ltd, Inc and GmbH.
Drop stop wordsRemoves the words of the lookup list chosen on the step. With no list chosen, it uses the stop list set on the field.
Apply aliasesReplaces a short name with the full one, using the lookup list chosen on the step (see Alias lists).
Keep a pattern matchKeeps 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 digitsKeeps the last digits of the value. Digits sets how many, from 1 to 64; it starts at 6.
Match the exact key onlyLeaves 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.

The Test section with three values: HOF0055568 and Hof.55568 both get the key HOF55568 and share a dot, UME2-SS-0010 gets UME2SS10, the first value is expanded to show each step's output, and Values that now match lists HOF55568
PartWhat it shows
Value and KeyEach 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 valueShows each step's output for that value, which shows the step that changed it.
Values that now matchEach 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.

The New alias list form under the steps: list name DOCS NRM aliases EN and the value NT => Northwind Traders

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.

The Risk title normaliser with a Drop bracketed parts step added: Impact lists three fields and warns that saving changes the keys of fields that use it, with 0 of 7 current values getting a new key, and the button reads Save as version 2

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.

The Delete Risk title? window: a note that a normaliser no field uses is deactivated, and a message that 3 fields use this normaliser and must be changed first, with only Cancel

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.

The Risk Register in the template builder: a field's Graph role with Role Identity key, and the Normaliser list open on its Custom group with each normaliser's name and description
  • 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

StepWhat to do
1Open New > Custom Fields & Configuration > Normalisers.
2Select New normaliser.
3Type a Name. Change the Slug if needed, and add a Description.
4Under Steps, choose a built-in in Start from, or keep the steps it starts with.
5Type some values under Test, including different spellings of the same thing.
6Add 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.
7Select 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

StepWhat to do
1Open New > Custom Fields & Configuration > Normalisers.
2Select the normaliser.
3Change the steps.
4Under Impact, read how many current values get a new key and how many graph links change.
5Select Save as version N+1 to keep the change, or Cancel to leave the normaliser as it was.

How to deactivate a normaliser​

StepWhat to do
1Open New > Custom Fields & Configuration > Normalisers.
2Select the normaliser.
3Select 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​

IssueDetail
The Normalisers tile is not shownThe tile needs the View Graph Normalisers permission.
Save is unavailableThe name or slug is missing or not valid, there are no steps, or a step shows a problem in red.
The slug cannot be changedFields use the normaliser. Make a new normaliser with the new slug instead.
Delete is refusedFields use the normaliser. Choose another normaliser on those fields first.
A normaliser is not offered on a fieldIt is inactive, or the field's Role is not Identity key, Entity mention or Document reference.
A value gets No keyA Keep a pattern match step's pattern does not match it, or the steps removed every character.