Back to LanguageTool Homepage - Privacy - Imprint

Range of numbers

Hello @udomai @jaumeortola @tiff

How do I check the range of a number?

For example, in my CV (Portuguese):
“[ 1 out 2013 – 30 nov 2015 ]”

It triggers the abbreviation rule for the month.

So, I wanted to create an antipattern that would check if the first number is between 1 and 31, then the month, and then another number which is the year.


Hi @marcoagpinto,

I know no better method than thinking about it like a string of characters (rather than a number), which requires a regex like 0?[1-9]|[12][0-9]|3[01]. That should do for your rule idea :slight_smile:


Great idea!