Reverse the gender of a string: Difference between revisions

m
m (→‎{{header|REXX}}: added another word to ghe "gender" list. -- ~~~~)
m (→‎{{header|REXX}}: whitespace)
Line 145:
=={{header|REXX}}==
Not much effort was put into compressing the words (as far as pluralizing and constructing the
<br>various forms of words). More code could be written to parse words that have a minus or hyphen.
<lang rexx>/*REXX program to reverse genderize a text string. */
sw=80-1 /*could use: SW=LINESIZE()-1 */
Line 409:
if datatype(_,'U') then return _'S'
return _'s'</lang>
{{out}}
'''output'''
<pre>
<pre style="overflow:scroll">
───────────────────────────────────── old ─────────────────────────────────────
When a new-hatched savage running wild about his native woodlands in a grass
Line 432:
excellent blood in hers veins-royal stuff; though sadly vitiated, I fear, by
the cannibal propensity she nourished in hers untutored youth.
 
</pre>
Anonymous user