@@ -190,10 +190,10 @@ external input value does not appear in a previous _declaration_.
190190> than one applied to the same _ variable_ named in a _ declaration_ .
191191> For example, this message is _ valid_ :
192192> ```
193- > .input {$var :number maxFractionDigits =0}
194- > .match {$var :plural maxFractionDigits =2}
193+ > .input {$var :number maximumFractionDigits =0}
194+ > .match {$var :number maximumFractionDigits =2}
195195> 0 {{The selector can apply a different annotation to {$var} for the purposes of selection}}
196- > * {{A placeholder in a pattern can apply a different annotation to {$var :number maxFractionDigits =3}}}
196+ > * {{A placeholder in a pattern can apply a different annotation to {$var :number maximumFractionDigits =3}}}
197197> ```
198198> (See the [Errors](./errors.md) section for examples of invalid messages)
199199
@@ -356,8 +356,8 @@ match-statement = match 1*([s] selector)
356356>
357357> ```
358358> .match {$count :number}
359- > 1 {{You have one notification.}}
360- > * {{You have {$count} notifications.}}
359+ > one {{You have {$count} notification.}}
360+ > * {{You have {$count} notifications.}}
361361> ```
362362
363363> A _message_ containing a _matcher_ formatted on a single line:
@@ -380,8 +380,9 @@ selector = expression
380380There MUST be at least one _ selector_ in a _ matcher_ .
381381There MAY be any number of additional _ selectors_ .
382382
383- > A _ message_ with a single _ selector_ that uses a custom ` :hasCase ` _ function_ ,
384- > allowing the _ message_ to choose a _ pattern_ based on grammatical case:
383+ > A _ message_ with a single _ selector_ that uses a custom _ function_
384+ > ` :hasCase ` which is a _ selector_ that allows the _ message_ to choose a _ pattern_
385+ > based on grammatical case:
385386>
386387> ```
387388> .match {$userName :hasCase}
@@ -393,13 +394,16 @@ There MAY be any number of additional _selectors_.
393394> A message with two _selectors_:
394395>
395396> ```
396- > .match {$photoCount :number} {$userGender :equals}
397- > 1 masculine {{{$userName} added a new photo to his album.}}
398- > 1 feminine {{{$userName} added a new photo to her album.}}
399- > 1 * {{{$userName} added a new photo to their album.}}
400- > * masculine {{{$userName} added {$photoCount} photos to his album.}}
401- > * feminine {{{$userName} added {$photoCount} photos to her album.}}
402- > * * {{{$userName} added {$photoCount} photos to their album.}}
397+ > .match {$numLikes :number} {$numShares :number}
398+ > 0 0 {{Your item has no likes and has not been shared.}}
399+ > 0 one {{Your item has no likes and has been shared {$numShares} time.}}
400+ > 0 * {{Your item has no likes and has been shared {$numShares} times.}}
401+ > one 0 {{Your item has {$numLikes} like and has not been shared.}}
402+ > one one {{Your item has {$numLikes} like and has been shared {$numShares} time.}}
403+ > one * {{Your item has {$numLikes} like and has been shared {$numShares} times.}}
404+ > * 0 {{Your item has {$numLikes} likes and has not been shared.}}
405+ > * one {{Your item has {$numLikes} likes and has been shared {$numShares} time.}}
406+ > * * {{Your item has {$numLikes} likes and has been shared {$numShares} times.}}
403407> ```
404408
405409### Variant
@@ -531,7 +535,7 @@ function = ":" identifier *(s option)
531535> A _ message_ with a _ function_ operating on the _ variable_ ` $now ` :
532536>
533537> ```
534- > It is now {$now :datetime}
538+ > It is now {$now :datetime}.
535539> ```
536540
537541##### Options
@@ -556,34 +560,18 @@ option = identifier [s] "=" [s] (literal / variable)
556560
557561> Examples of _ functions_ with _ options_
558562>
559- > A _ message_ with a ` $date ` _ variable_ formatted with the ` :datetime ` _ function_ :
563+ > A _ message_ using the ` :datetime ` function.
564+ > The _ option_ ` weekday ` has the literal ` long ` as its value:
560565>
561566> ```
562- > Today is {$date :datetime weekday=long}.
567+ > Today is {$date :datetime weekday=long}!
563568> ```
564569
565- > A _message_ with a `$userName` _variable_ formatted with
566- > the custom `:person` _function_ capable of
567- > declension (using either a fixed dictionary, algorithmic declension, ML, etc.):
570+ > A _message_ using the `:datetime` function.
571+ > The _option_ `weekday` has a variable `$dateStyle` as its value:
568572>
569573> ```
570- > Hello, {$userName :person case=vocative}!
571- > ```
572-
573- > A _message_ with a `$userObj` _variable_ formatted with
574- > the custom `:person` _function_ capable of
575- > plucking the first name from the object representing a person:
576- >
577- > ```
578- > Hello, {$userObj :person firstName=long}!
579- > ```
580-
581- > A _message_ formatted with the custom _function_ `:list`
582- > that has an option `maxEntries`
583- > that has a _variable_ as its value:
584- >
585- > ```
586- > Hello, {$userList :list maxEntries=$maxEntries}!
574+ > Today is {$date :datetime weekday=$dateStyle}!
587575> ```
588576
589577#### Private-Use Annotations
@@ -828,9 +816,9 @@ Otherwise, the set of characters allowed in a _name_ is large.
828816Examples:
829817> A variable:
830818> ```
831- >This has a {$variable}
819+ > This has a {$variable}
832820>```
833- >A function:
821+ > A function:
834822> ```
835823> This has a {:function}
836824> ```
0 commit comments