The RegEx Assembly feature in Cattitude is already a very powerful feature that no other CAT tool has, but it just became even more powerful: it now recognizes tags as word boundaries.

What is Assembly?
First things first: what is Assembly? Sometimes you don’t want CAT tools to think. Sometimes you don’t want machine-translation engines to come up with fancy sentences that have been pimped by artificial intelligence and neural networks. Sometimes what you need is just a dumb word-by-word translation.
Think specification tables. Think alphabetically sorted lists. Think categories. Any added artificial intelligence will only mix up word order and introduce errors. So in Cattitude you just press F1, you hear a mechanical sound, and the source will be copied to the target, while anything that has been defined as terminology will be translated word by word, like this:
Windows, Intel Core i5-660K processor, graphics card (NVIDIA GeForce GTX 1070, 190 MB), Memory (8 GB)
Windows, Intel Core i5-660K processor, grafische kaart (NVIDIA GeForce GTX 1070, 190 MB), geheugen (8 GB)
A neutral network may choose to translate Windows as those thingies in your wall for example, and that’s something we definitely don’t want. Think of Assembly like your little 6-year old son. He’s a great kid, but you definitely don’t want him to think for himself. He should do as he’s being told to do. √-1 as for now does not exist and we’ll handle complex numbers much later, so to speak.
So far so good. This is all pretty normal and almost every CAT tool supports this kind of dumb assembly.
RegEx Assembly
However, Cattitude goes one step further and introduces RegEx Assembly: you can extend the rules for Assembly by for example adding a rule like this:
Search: \b(\d{2,3})(\d{3})\b
Replace: $1.$2
This is written in a language called RegEx. Now, no one demands translators to become programmers, but RegEx is an easy language with plenty of possibilities that can be incredibly useful to translators. Trust me, it’s worth the investment (https://medium.com/javarevisited/7-best-regular-expression-courses-for-developers-to-learn-in-2021-9b8cb37bb3a5 is a great place to start).
So what does this do?
\b stands for the beginning or end of a word boundary
\d stands for a digit
\d{2,3} stands for a series of 2 or 3 digits
(\d{2,3}) stands for a series of 2 or 3 digits which we will call a group (this is the first group, so it’s group 1)
(\d{3}) stands for a series of 3 digits which is the next group, so group 2
\b stands for the end of this word
So we search for a word consisting of 2 or 3 digits followed by another 3 digits. We call the first 2 or 3 digits group 1 and the second group of 3 digits group 2.
We then replace this by the contents of group 1, followed by a full stop, followed by the contents of group 2.
The result is that a number like 16000 will be replaced automatically by 16.000. In Dutch, we put a decimal point between each group of 3 digits.
Though other CAT tools do support RegEx, none of them has integrated it with Assembly. So now we can just press F1 and all the words will be translated one by one, whereas any numbers will be converted to the format of your target language.

RegEx Assembly on steroids
This \b thingy is a problem though, as in CAT tools, we need to extend its functionality a bit. \b for example does not include tags, whereas tags in a CAT tool should definitely be treated as word boundaries. The above RegEx won’t find ◀️0▶️16000 for example, as ▶️ is not recognized as a word boundary.
So what have we done? Did we introduce a new command in RegEx that only works in Cattitude? Something like \endtag? No, we did not. We integrated tags into \b itself. That’s right. Every time you type \b in a RegEx expression, tags will be included automatically. Because RegEx is tedious enough as it is, and we don’t want to cause more hassle than necessary. Translators have enough on their mind already.


