Reverse the gender of a string: Difference between revisions

Content deleted Content added
Rdm (talk | contribs)
Rdm (talk | contribs)
Line 15:
For this simple example, to determine whether to change ''her'' to ''him'' or ''his'' we would need a grammatical representation of the surrounding context.
 
So, for now, we limit ourselves to the simple case specified in the task example, and do not even do all that great of a job there, either.:
 
<lang J>cheaptrick=: rplc&(;:'She He He She')</lang>