Hi message-format-wg,
I'm currently working on this issue #87 (Integrate Unicode Inflection into MessageFormatter 2.0) and would appreciate some clarification regarding the integration process. George Rhoten has already provided valuable insights that clarified many aspects of this matter, but the vision is still unclear on how Integrating inflection into MF2 should be approached.
Should the integration process primarily involve developing inflection rules directly within the MF2 itself, where we’d design and implement grammatical logic from the ground up (with necessary adjustments to existing toolchains)?
Or would the effort focus on adapting MF2 to interface with an external API or library(e.g., Morphun) and hence delegating core inflection logic externally?
Alternatively, is it geared towards a hybrid model—where certain rules are natively implemented, while others are resolved through external calls?
I recognize this integration will be a learning process for everyone, but hearing your perspectives would help tremendously.
Thank you for your time and consideration.
Hi, Baha --
In my mind, the path to implementing inflection in MF2 would be to define a set of custom functions implementing this functionality. The implementations of the custom functions could call out to an external API or library like you suggest; if those libraries are sufficient and available for use with different programming languages, I see no need to rewrite the code for MF2 purposes.
Note that custom functions can't be written in the MF2 syntax itself, but rather have to be written in the underlying implementation language, such as JavaScript and C++.
The way that MF2 factors out most functionality to separate functions can be a little tricky to understand at first, so if you need pointers, please ask for them!
Cheers,
Tim
--
You received this message because you are subscribed to the Google Groups "Message Format Working Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to message-format...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/message-format-wg/2fd8bc81-01a5-48c2-8fa7-11d99bf79b25n%40chromium.org.
Hi Baha,
(Thanks, Tim, for your response)
The most likely form, as Tim suggests, for inflection support to
take would be as selector or formatter functions (or both). It's
unclear to me whether these would be in their own namespace, in
the Unicode namespace (`u:`), or as default functions.
The goal would be for these functions to use the existing MF2
syntax to express inflection opportunities in a consistent manner.
We would only add features to MF2 if it were absolutely necessary.
The MF Working Group uses design documents to discuss proposed functionality. I would suggest that we begin with a design document. I'd be happy to have a phone/Slack call with you and others about the details of how to proceed.
regards,
Addison
-- Addison Phillips Chair (W3C I18N WG, MessageFormat WG) Internationalization is not a feature. It is an architecture.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/message-format-wg/93cf5a87-b3d4-496d-8334-d23b9ccee4c8%40igalia.com.
Hi Baha,
Such a call should be with whomever (I assume you would be included, since you initiated the thread) from the inflection WG is interested in working on MF integration, plus one or more representatives from MFWG.
thanks,
Addison
[Sorry for any duplicate messages, my reply-all messages are being deleted]
Thank you Tim for your valuable insights.
To ensure I align with MF2's existing functionality, could you kindly share any relevant documents or code examples demonstrating how MF2 typically implements and calls standalone functions? I believe the inflection rules would follow similar patterns.
Thank you Addison for responding, I truly appreciate you proposing a discussion to further discuss different ideas. To confirm, is this call intended to include my participation? If so, I would be delighted to join, contribute to the conversation, and learn from you.
I'm genuinely excited to move this forward under your guidance and appreciate the time you're investing in this effort.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/message-format-wg/6dcaa743-abfb-49a8-8008-d5a4374898c3%40unicode.org.