Mostly culture like everyone’s said. Buuut different cultures have different ways of representing gender. For example, in Spanish an “-a” at the end of a word denotes femininity. So female spanish names often end in “-a”, eg. Sofia, Maria, Isabella. With males it’s typically “-o” like Roberto, Diego, or Alejandro. Another feminine ending for Romantic languages is “-ette”, representing a dimunuitive. Forexample, Antoinette as a feminine version of Anton or Antoine
Latest Answers