Back to LanguageTool Homepage - Privacy - Imprint

No number in first pos of id


(Ruud Baars) #1

I know it has been this way since forever, but it is irritating that rules about numbers cannot have a digit as first position of rule id. Why is that?


(Lodewijk Arie van Brienen) #2

All major programming languages have this limitation for variable/function naming. (makes it easier to differentiate between values and variables/functions ... and it prevents you from breaking simple math equations like 1.1f+1.1f=2.2f)
Rule may simply be an elaborate variable/function type, with the 'rule ID' serving as the name.


(Daniel Naber) #3

The id is also an id in the way it's defined by XML, and ids in XML don't allow a digit as a first character.


(Ruud Baars) #4

Okay, in that case it is what it is. One can disagree, but it does not help.