You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use singular for predefined sets (.decimalDigit, .letter vs. .decimalDigits, .letters)
ICU specifies character categories in singular terms (\p{Decimal}, \p{Letter}) with the quantifier being separate (+, *, ?, {n,m})
SLTR rule also uses modifiers (?,*,+) to specify quantity and seems more in line with a Regular Expression type of declaration. Plural term in the definition seems to imply multiple of given category, when it's only one of N. When you read the STLR
number = .decimalDigits
One could infer it to match the number "123" when in fact it will only match the "1"
Examples of the singular w/ modifiers:
digits = .decimalDigit+ // one or more of a decimal digit
ows = .whitespace? // optional whitespace char
The text was updated successfully, but these errors were encountered:
Thanks for raising this. I've been thinking about it over the weekend and last few days and my feeling is that I wish to remain consistent with Swift foundation at this time. One of the reasons for this decision is actually the other request for a .backslash which would actually be a single character terminal where the singular now makes sense, and consequently the plural is communicating something.
Use singular for predefined sets (.decimalDigit, .letter vs. .decimalDigits, .letters)
ICU specifies character categories in singular terms (\p{Decimal}, \p{Letter}) with the quantifier being separate (+, *, ?, {n,m})
SLTR rule also uses modifiers (?,*,+) to specify quantity and seems more in line with a Regular Expression type of declaration. Plural term in the definition seems to imply multiple of given category, when it's only one of N. When you read the STLR
number = .decimalDigits
One could infer it to match the number "123" when in fact it will only match the "1"
Examples of the singular w/ modifiers:
digits = .decimalDigit+ // one or more of a decimal digit
ows = .whitespace? // optional whitespace char
The text was updated successfully, but these errors were encountered: