>>9051931the first two are abvious, if the word is feminine you use its plural and so on
the rest are a bit tricky i just know them by memorising but there might be a way to tell
also i should add that im very bad at arabic and it could be smipler than i think