Control over AI
Documentation
Policy

Patterns in custom terms

A pattern recognises every number with the same structure, such as a file, pupil or case number: how to build one from a single example, what words in front and checks do, and which suggestions exist per sector.

Some of the data that belongs to your work is not a fixed word but a number that differs per person or per case. Think of a court file number, a pupil number or a case number from your case system. You cannot put such a number on the list as a single term, because new ones appear every day. A pattern therefore recognises every number with the same structure. You create it on the Custom terms tab under Policy > Detection profiles, and it works like a term: it belongs to a category, takes that category's level from the detection profile and becomes a placeholder after masking, by default [ORG-REFERENCE1]. Single terms are explained in Custom terms.

Custom terms in the dashboardAdd patterns, suggestions for your sector, show and find.

Building a pattern from one example

Click Add and choose A pattern. You then fill in these fields:

  • Name: a name that helps you find the pattern in the list, such as "File number", of up to 60 characters. The name is readable in the list.
  • One example: one number as it appears in a letter or system of yours, for example UV-2026-0412. The example has at least four characters, including a digit, and consists of letters without accents, digits and separators such as a hyphen.
  • Words in front: words that appear just before the number, separated by commas, such as "file, file number". This field is usually optional; see below.
  • Check: whether the number has check digits that BeeSensible should verify.

BeeSensible works out the structure from the example. Letters and punctuation stay fixed, a run of digits becomes a fixed number of digits, and a space, hyphen, full stop or slash becomes a separator, where all of those separators count. Under How it is built you see that structure as blocks, for example "UV", "separator", "4 digits", "separator", "4 digits". Below it are made-up examples of what the pattern does and does not recognise, such as "Recognises UV 6988 3461" and "Not UV-53-05", with the reason, and how a number looks after masking. That way you see what the pattern will mark before you save it.

Add pattern saves it. The pattern is then in the list and works from that moment, just like a term; there is no measuring period first. The example you typed is not stored anywhere, only the structure. If the structure is not right, type a different example, because you cannot edit the blocks themselves. After saving you can only change the category; a different structure is a new pattern.

Words in front of the number

With words in front, a number only counts when one of those words appears shortly before it, with at most three words in between and no other number. A pattern for an eight-digit AGB code therefore marks only the number after "AGB code" and leaves other eight-digit figures alone. In the sentence "AGB code 03012345 and date 20241125" the word belongs to the first number and not to the date.

A word in front has 2 to 40 characters including a letter, and a pattern has at most ten. Capitals, accents, spaces and hyphens make no difference for these words. BeeSensible marks only the number and leaves the word in place, so the AI tool still understands what the text is about after masking: "file number [ORG-REFERENCE1]".

If a structure without a word in front looks like an ordinary figure, such as a date or an amount, you can only save the pattern with at least one word in front. That applies to a structure without a fixed letter or punctuation mark, without a check and with fewer than two separators. Eight digits in a row could also be a date or a Chamber of Commerce number, for example, while a number such as 13/651296-10 has enough features of its own to work without one.

Check

Some numbers contain check digits, which let you verify whether the number can exist. If you choose one of the checks under Check, a number only counts when its check digits are right. That prevents marks on figures that happen to have the same structure. Only pick one if the number certainly has one.

CheckUsed for
No checkThe default.
Eleven test, as for a citizen service numberNumbers that use the Dutch eleven test, such as the payroll tax number.
Eleven test of the Dutch education numberThe education number, which uses its own variant of the eleven test.
Check digits of Belgian numbersNumbers whose last two digits follow from the rest, such as the Belgian company number and national register number.

Suggestions for your sector

For numbers whose structure is publicly documented, BeeSensible suggests a pattern. You only see suggestions for the sector your organisation chose during setup, at most three per sector and one at a time, on the Custom terms tab in the card Suggested for your sector. The suggestion shows the same blocks and examples as a pattern you make yourself, with the source the structure is based on underneath.

  • Turn on adopts the suggestion. The pattern marks from that moment.
  • Give an example lets you build the pattern yourself, for a number whose structure differs per organisation, such as a pupil or patient number. You type one number as it appears in your systems, and the name and words in front are already filled in.
  • Do not suggest drops the suggestion. It will not come back, and the audit log records the choice.
SectorSuggestions
Guardianship and mentorshipCourt file number (CB, BM or MB), case number of a petition
Law and legal servicesCourt docket and appeal case numbers, public prosecutor case number, ECLI of a judgment
EducationEducation number, pupil number from an example of your own
Health and welfare care, psychology and therapyAGB code and BIG number, both with a word in front, and a patient number from an example of your own
Administration and accountancyPayroll tax number and tax assessment number, both with the eleven test
GovernmentOpen Zaak case number, case number from your case system, A-number with a word in front
HR, coaching and reintegrationEmployee or file number from an example of your own

Other sectors have no suggestions. Data that detection already recognises by itself, such as a citizen service number, IBAN, Chamber of Commerce number or VAT number, does not need a pattern.

Patterns in the list

On the Custom terms tab, patterns have a list of their own, with the name, the category and the date they were added, and a counter such as "3 of at most 50 patterns". The structure, the check and the words in front are hidden like a term. The eye makes them visible for half a minute, and the audit log records that it happened. You can also type a number in the search field: if a pattern recognises that number, you see "Found: a pattern above recognises this number." Words in front are not taken into account there.

A pattern and a term work together: when they overlap in the text, the longest match gets the mark, and when you switch a category off in a detection profile, the patterns in that category are off too. Patterns work in the extension, in the desktop app and in documents.

A pattern does not mark a number

First check whether the pattern's category takes part in the detection profile of that app. If the pattern has words in front, check that one of them appears shortly before the number, with at most three words in between and no other number. If it has a check, verify that the number passes it; a made-up number often does not. Also type the number in the search field: if it is not found there, the structure does not fit, and you create the pattern again with a different example.

Last updated:

Portrait of Rens Timmermans from BeeSensible

Prefer someone to walk you through it?

Rens, BeeSensible

I'm happy to give you a twenty-minute tour. Leave your details and I'll find a time that suits you. You're also welcome to call or email.

Prefer to talk to someone first?

Want a live demo, or a quote for 100+ users? Leave your details and we'll be in touch within one working day.