11## Interchange Data Model
22
3- This section defines a data model representation of MessageFormat 2 _ messages_ .
3+ This section defines a data model representation of Unicode MessageFormat _ messages_ .
44
55Implementations are not required to use this data model for their internal representation of messages.
66Neither are they required to provide an interface that accepts or produces
77representations of this data model.
88
99The major reason this specification provides a data model is to allow interchange of
1010the logical representation of a _ message_ between different implementations.
11- This includes mapping legacy formatting syntaxes (such as MessageFormat 1 )
12- to a MessageFormat 2 implementation.
11+ This includes mapping legacy formatting syntaxes (such as ICU MessageFormat )
12+ to a Unicode MessageFormat implementation.
1313Another use would be in converting to or from translation formats without
1414the need to continually parse and serialize all or part of a message.
1515
1616Implementations that expose APIs supporting the production, consumption, or transformation of a
1717_ message_ as a data structure are encouraged to use this data model.
1818
1919This data model provides these capabilities:
20- - any MessageFormat 2.0 message can be parsed into this representation
20+ - any Unicode MessageFormat _ message _ can be parsed into this representation
2121- this data model representation can be serialized as a well-formed
22- MessageFormat 2.0 message
23- - parsing a MessageFormat 2.0 message into a data model representation
22+ Unicode MessageFormat _ message _
23+ - parsing a Unicode MessageFormat _ message _ into a data model representation
2424 and then serializing it results in an equivalently functional message
2525
2626This data model might also be used to:
27- - parse a non-MessageFormat 2 message into a data model
28- (and therefore re-serialize it as MessageFormat 2 ).
27+ - parse non Unicode MessageFormat messages into a data model
28+ (and therefore re-serialize it as Unicode MessageFormat ).
2929 Note that this depends on compatibility between the two syntaxes.
30- - re-serialize a MessageFormat 2 message into some other format
30+ - re-serialize a Unicode MessageFormat _ message _ into some other format
3131 including (but not limited to) other formatting syntaxes
3232 or translation formats.
3333
@@ -43,7 +43,7 @@ declarations, options, and attributes to be optional rather than required proper
4343
4444> [ !IMPORTANT]
4545> The data model uses the field name ` name ` to denote various interface identifiers.
46- > In the MessageFormat 2 [ syntax] ( /spec/syntax.md ) , the source for these ` name ` fields
46+ > In the Unicode MessageFormat [ syntax] ( /spec/syntax.md ) , the source for these ` name ` fields
4747> sometimes uses the production ` identifier ` .
4848> This happens when the named item, such as a _ function_ , supports namespacing.
4949
@@ -100,7 +100,7 @@ interface LocalDeclaration {
100100In a ` SelectMessage ` ,
101101the ` keys ` and ` value ` of each _ variant_ are represented as an array of ` Variant ` .
102102For the ` CatchallKey ` , a string ` value ` may be provided to retain an identifier.
103- This is always ` '*' ` in MessageFormat 2 syntax, but may vary in other formats.
103+ This is always ` '*' ` in the Unicode MessageFormat syntax, but may vary in other formats.
104104
105105``` ts
106106interface Variant {
0 commit comments