the situation in Swedish is as you described, and it is not possible to modify a Language Object / Entity which is part of the Lexical Resources. You could create your own custom entity though and include the required NLU variable (and all numbers that you need).
Do you know the range of numbers that you would need to cover here?
/Benjamin
Hello @Raquell
Just as Benjamin mentions, you can create a custom entity, re-using the numbers already available with NUMMER.ENTITY, and then expand it with your own custom numbers, either by using existing LOBs or bare words, or creating sub-lobs and/or entities for better organization if you have many.
MINA_NUMMER.ENTITY:
nNumber
%NUMMER.ENTITY
lob.nNumber
tvĂĄhundra
200
trehundra
300
fyrahundra
400
femhundra
500
etc…
To solve your specific use case, one idea could be to create a Language Object NUMBER_EXTRACTOR using the custom entity just created, and with the condition:
(The LOB needs the NLU variables “digits” and finalNumber" declared)
The first and second match of MINA_NUMMER.ENTITY are made mandatory (assuming here that the biggest number the entity covers are in the hundreds, so at least two matches, for example “tvåhundra trehundra”, are needed for a 6 digit number). The rest of the operands are optional for the cases where the user says smaller numbers at a time. Once a number is matched, they are converted to strings and appended to a temporary array. At the end joining them into the final string.
In the Trigger condition, a predicate script is added to ensure the entity only triggers in the case the number is 6 characters long, and if so the value of the variable from the LOB is saved to a flow/session variable: