Open hasanbeder opened 5 months ago
Every language has its own different way of handling plurals, with its own exceptions. I would personally suggest we try something similar to Android's quantity strings. Then, the translator just writes the different cases themselves, and the software doesn't need to know anything about grammar.
+1 on a pluralize function, but exceptions should be in the language's data file rather than the function itself. I think each language having it's own (optional) pluralize function as a fallback for manual entries is a pretty neat idea. This is effectively a hybrid of the two options that were proposed here.
Dear Puter Developers, I am writing to provide feedback on the Turkish language support in Puter, specifically regarding the issue of pluralization. Currently, the static "plural_suffix" value does not account for the complexities of Turkish grammar, particularly vowel harmony, leading to inaccuracies.
Proposed Solution: Vowel Harmony-Based Pluralization
Turkish has a vowel harmony system where the vowels within a word must be compatible. This harmony affects the suffixes added to words, including the plural suffix.
1. Identifying Vowel Harmony:
2. Handling Exceptions:
3. Implementation:
Example Code (JavaScript):
I believe that implementing a vowel harmony-based pluralization system will greatly enhance the quality of Puter's Turkish language support.
Sincerely.