Reverse the gender of a string: Difference between revisions

m
m (→‎{{header|Haskell}}: (preamble))
Line 99:
We can optimise the time and space complexity of this computation by careful selection of the source and target languages (not specified in the task description, although the example appears to be drawn from some kind of Anglo-Saxon dialect, which seems a bit sub-optimal for these purposes).
 
Sino-Tibetan dialects generally work well here. If we choose any standard transcription of Modern Standard Chinese (such as Pinyin or IPA) or more or less any written sample of pre 19c literary Chinese, we can reduce the entire computation down to a very pleasing intersection of code golf with fully optimized space and time performance with reasonably clear and succinct code:
 
{{works with|汉语拼音}}
9,659

edits