What is the easiest way to identify a gender for a noun (in french)?
You could try to apply a French POS tagger, e.g. as suggested here: https://stackoverflow.com/questions/44468300/how-to-pos-tag-a-french-sentence

Note that a POS tagger usually works better from full sentences than isolated words.