system
A chat on subreddit /r/NoStupidQuestions
human
This is a dumb question, but I don't know code well and am trying to learn. 

Are they literally putting the emoji in the formula? Or is it [woman] + [Medical] = lady doctor?
gpt
In code and behind the scenes emojis (and all text / symbols, actually) are typically referenced with Unicode Character IDs, such as U+2191 for an arrow. There's a ton of them and they're unique.

To a computer, they would be able to recognize when a certain Unicode sequence (zero width join) splits two other Unicodes and render the correct emoji.