12
Write a program or function that takes in a single string containing only lowercase a-z, and prints or returns a truthy value if the word is the feminine version of the thing it represents and a falsy value if it is the masculine version. For example, hen is the feminine version for chicken and rooster is the masculine version, so hen might produce 1 and rooster might produce 0.
Doing this for all English words that reflect gender would of course be way too unwieldy. Your program/function only needs to support 20 masculine/feminine pairs. Below are five sets of 10 masculine/feminine pairs, categorized by topic. Choose any two of the sets; the 20 total pairs in these two sets are the 40 words your program/function must work for.
(format is masculine_version feminine_version)
General
he she him her man woman boy girl male female masculine feminine guy gal lad lass mister miss sir madamFamilial
father mother dad mom pa ma son daughter brother sister husband wife grandfather grandmother grandpa grandma uncle aunt nephew nieceAnimal
lion lioness rooster hen stallion mare bull cow drake duck boar sow buck doe ram ewe gander goose billy nannyRoyal
king queen prince princess emperor empress duke duchess marquess marchioness earl countess baron baroness baronet baronetess lord lady knight dameFantastical
wizard witch giant giantess incubus succubus nidorino nidorina nidoking nidoqueen ents entwives hanuvoite inimeite centaur centaurides merman mermaid khal khaleesi
So, for example, you might choose the General and Familial categories. Then any input from he to sir or father to nephew would produce a falsy value, and any input from she to madam or mother to niece would produce a truthy value.
The values don't all have to be the same truthy/falsy type, e.g. he might produce 0 but sir might produce false. You may assume only the 40 specific lowercase a-z words from your two selected categories are ever input.
The shortest answer in bytes wins. Tiebreaker is earlier post.
(This challenge is not meant to correlate with or make statements about any current gender-based social issues.)
1Related. – Martin Ender – 2015-05-04T11:06:58.273
Shouldn't
countbe the masculine ofcountess? – mbomb007 – 2015-05-04T14:39:03.193@mbomb007 Not necessarily.
– Calvin's Hobbies – 2015-05-04T15:45:11.5603Three answers, all Retina. – Alex A. – 2015-05-04T23:26:22.830