Template talk:es-pr

From Wiktionary, the free dictionary
Latest comment: 1 year ago by Kiril kovachev in topic Problem detecting syllables in long phrase
Jump to navigation Jump to search

Problem detecting syllables in long phrase[edit]

Hello, I noticed the page quien quiera peces, que moje el culo is classified under the category "Spanish 5-syllable words" which is clearly not right, and I assume is being generated by this template. I imagine the cause is the comma, because the first 3 words, before the comma, are indeed 5 syllables. But overall this template is not correctly counting the entire phrase's syllables - is this intended? In any case I wanted to provide this report in case this is an unknown problem. Thank you, Kiril kovachev (talk) 21:13, 22 April 2023 (UTC)Reply

@Benwing2 Apologies if you have already been notified — I am just pinging you in case you haven't. I did try to look through the code and see if I can fix this myself, but regrettably it will take me a while longer if I am to try, as I am not fluent in Lua. Kiril kovachev (talk) 19:22, 26 April 2023 (UTC)Reply
@Kiril kovachev Thanks for the ping; I didn't get any previous pings. I think properly there should be no "X-syllable words" category at all if there are spaces in the lemma. I think this category is getting added by Module:IPA rather than the Spanish pronunciation module itself, which is probably the reason for the bug. Benwing2 (talk) 22:27, 26 April 2023 (UTC)Reply
@Kiril kovachev I fixed this. Both Module:IPA and Module:hyphenation were trying to add the 'X-syllable words' category and Module:hyphenation was doing it wrongly. Benwing2 (talk) 03:57, 27 April 2023 (UTC)Reply
Thanks very much for your quick response, and amazing work! Kiril kovachev (talk) 07:16, 27 April 2023 (UTC)Reply