Yes, there are many exceptions: "tata, mężczyzna, kierowca, poeta, optymista, pesymista, poliglota, idiota" are all masculine.
On the other hand "kość, rzecz, noc, dłoń, brew" are feminine.
Finally, diminutives "Jasio, piesio, brzusio" end with -o but are masculine.
Nouns ending with a consonant are most often masculine, these ending with -a or -i are feminine, and those with -o, -e, -um or -ę - are neuter.
Polish masculine gender has 3 "subgenders" - masculine personal, masculine not personal animated, masculine not animated. The difference between animated and not animated shows in singular Accusative,
Difference between personal and not personal shows up in plural. - all feminine, all neuter nouns and masculine not personal take "not masculine personal" adjectives, pronouns and verb forms
Masculine personal plural nouns have their own adjectives, pronouns and verb forms.
Twój syn- Twoi synowie - sons( masculine personal) Twój pies- Twoje psy - dogs( masculine animated not personal) Twój dom- Twoje domy- homes, houses( masculine not animated) Twoja dziewczynka- Twoje dziewczynki - girls (feminine) Twoja książka-Twoje książki- books (feminine) Twoje dziecko- Twoje dzieci- kids ( neuter) Twoje krzesło- Twoje krzesła- chairs (neuter)
There is no generic form. We wondered a bit whether you could just use the first form and omit the second one ("twoi chłopcy i dziewczynki" / "twoje dziewczynki i chłopcy"), but it seems better not to, if the pronoun doesn't match the second noun grammatically. After all, this is likely to be understood as "your boys and (some other) girls".