Talk:Z10096

Latest comment: 1 month ago by Azertus in topic Language dependant?

Character filtering

Consistent casing and some filtering of punctuation would be needed, see my implementations on the beta and its helper functions.

I am doubtful whether this function falls within the scope of supporting Abstract Wikipedia, but some of the helper functions certainly do.

/ Autom (talk) 10:24, 5 August 2023 (UTC)Reply

More on filtering

My guess is that current iteration is based on a character-for-character reversal & does not discount case, punctuation, or spaces. Thus one of me favorite palindromes fails the current version of the function:

  • Straw? No, too stupid. I put soot on warts.

Peaceray (talk) 22:07, 7 August 2023 (UTC)Reply

This function doesn't support Abugida writing system

Abugida, also known as alpha-syllabary, is a segmental writing system in which consonant–vowel sequences are written as units; each unit is based on a consonant letter, and vowel notation is secondary, like a diacritical mark. So, to use this function, we need to match strings at grapheme level, not character level. But this is not supported by this function which makes this function useless for languages like Bangla, Hindi, Tamil etc. –– Tahmid (talk) 11:01, 8 August 2023 (UTC)Reply

@Tahmid: perhaps is palindrome (grapheme level) (Z10553) is what you are looking for? 0xDeadbeef (talk) 11:26, 8 August 2023 (UTC)Reply
umm...no. I didn't understand the implementation of the function (I don't know Javascript) but is palindrome (grapheme level) (Z10553) also doesn't support Abugida. –– T@hmid (T@lk) 16:10, 8 August 2023 (UTC)Reply

Language dependant?

Hi,

What about palindroms in other languages where some unusual cases can happen? I'm thinking about Breton where "chevech" is a five leter palindrom 'ch' 'e' 'v' 'e' 'ch' ('ch' being one and only letter in the Breton alphabet).

@Fnielsen and 0xDeadbeef:

Cheers, VIGNERON (talk) 21:02, 21 August 2023 (UTC)Reply

You'd need is palindrome (grapheme level) (Z10553), but actually being able to supply it with a locale 0xDeadbeef (talk) 15:15, 24 August 2023 (UTC)Reply
@0xDeadbeef: hmmm, would it be doable? and if not, what do we need to be doable? Cheers, VIGNERON (talk) 07:51, 7 September 2023 (UTC)Reply
@VIGNERON: No real help here, but I added this as a failing test case. --Azertus (talk) 14:37, 28 February 2024 (UTC)Reply
Return to "Z10096" page.