Module talk:hy-pronunciation/testcases

Hello, you have come here looking for the meaning of the word Module talk:hy-pronunciation/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module talk:hy-pronunciation/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module talk:hy-pronunciation/testcases in singular and plural. Everything you need to know about the word Module talk:hy-pronunciation/testcases you have here. The definition of the word Module talk:hy-pronunciation/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule talk:hy-pronunciation/testcases, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

Did testcases such as մոծակ - mɔˈt͡sɑk fail before Kephir's changes? --Ivan Štambuk (talk) 21:14, 5 January 2014 (UTC)Reply

Those are new testcases, added after Kephir's changes. --Vahag (talk) 21:23, 5 January 2014 (UTC)Reply
Yes, they did fail. I checked. --Vahag (talk) 21:27, 5 January 2014 (UTC)Reply
OK. Is ə a vowel or a consonant? You've added it to consonants but have as a test case. It should be unstressed if monosyllabic... --Ivan Štambuk (talk) 21:41, 5 January 2014 (UTC)Reply
I may have done some things wrong, I don't understand Lua operators well.
It is a vowel. I added it to the consonants, so that wouldn't be stressed as *; the stress is on the last vowel, unless that vowel is . In very rare cases, when all the vowels the word has are , e.g. ղըրղը՛զ (ġərġə́z), շըրը՛խկ (šərə́xk), the last is stressed. Such rare cases can be covered by manually adding the stress mark. --Vahag (talk) 21:50, 5 January 2014 (UTC)Reply

If the colloquial pronunciation can be completely derived from the standard pronunciation (which I don't know at present stage, perhaps some shared pre-processing is necessary), then it should best be done as a separate function that calls the pronunciation() function and applies replacement on its output. --Ivan Štambuk (talk) 23:04, 5 January 2014 (UTC)Reply

In many cases the colloquial pronunciation cannot be derived from the standard pronunciation. A knowledge of a native speaker is required. In such cases I intended to feed the module a phonetically respelled input, as in բարբառ. In other cases, and such cases are too numerous to do them by hand, the colloquial pronunciation can be completely derived from the standard pronunciation. BTW, check your email. --Vahag (talk) 23:43, 5 January 2014 (UTC)Reply
OK, so adding the generation of colloquial pronunciation in a separate function should work. The template {{hy-pron}} could check if the coll= parameter is present - if not, it would call the function for generating colloquial pronunciation, and otherwise it would call the pronunciation() function for the provided argument (i.e. the phonetic respelling). I could add it like that if you want. --Ivan Štambuk (talk) 01:28, 6 January 2014 (UTC)Reply
Yes, let's add it in a separate function. To simplify the matter, I have separated the generation of pronunciation from a phonetic respelling. Is it possible to show the result of the pronunciation.colloquial(), only if differs from the result of pronunciation()? Perhaps the module can return something that will trigger the respective if condition in {{hy-pron}}?
PS I have added two new failed testcases. I didn't think of them before. --Vahag (talk) 15:39, 6 January 2014 (UTC)Reply