How to tell the gender of words
I am always just going on the sound of all the different "the's" in German. I would like to know if it all how to tell the gender of words in German
This is a good starting point: https://www.lsa.umich.edu/german/hmr/Grammatik/Gender/Gender.html
The rest is all memorization... learn the word + the article, not just the word.
The only often correct rule I know is the rhyme of the final e, which means that many or most German nouns ending in :e" are feminine.
Years ago I had a German teacher who liked little stories that go with words for a clue to the gender like the god of daytime was male, whereas nighttime was controlled by a goddess. hence Tag is male and Nacht is female.
However Nouns in different languages have a 50/50 chance of being the same as German. So time and effort seems to be necessary.