drlippman / IMathAS

IMathAS Online Math Assessment
Other
115 stars 99 forks source link

adds capitalized pronouns to randnamewpronouns() macro #188

Closed nick-chura closed 4 years ago

nick-chura commented 4 years ago

I've seen folks request this a few times, so I thought it might be worth addressing.

Code example: $name is my friend, and $heshe loves cats more than I do. $Hisher cat's name is Freddy. $Heshe has white fur with black spots. The cat, I mean...not $name!

Output: Jake is my friend, and he loves cats more than I do. His cat's name is Freddy. He has white fur with black spots. The cat, I mean...not Jake!

drlippman commented 4 years ago

I appreciate the idea and effort, but using ucfirst to capitalize manually seems simple enough. This feels like it overly complicates things.

nick-chura commented 4 years ago

Yeah -- I figured it was a bit of a long shot and a little complicated.