I am trying to remember the title and author of a short story about an ape (maybe a chimp) who is given human intelligence as a result of experimentation, and subsequently feels alienated.
It takes place in the 19th century, I think. The ape narrates. Somewhat gruesomely, the scene I remember most clearly is where the ape confesses that his human colleagues rented a female monkey as a prostitute for him, and that he finds the intercourse depressing but necessary.
I faintly recall that there's something strange about the story's context; maybe it appears as a story-within-a-story, or maybe it's a parody. It may be a parable about animal testing.
Can anyone help me? This is driving me crazy.