whel first of all there are some pieces in hebrew with NIKUD (the vowels)
and its probably Gam but it can be Gem
goom is גום
gim is גים
and we are used to it... we know the words..
and if it is not a real word we guess..
like
אשך
can be Ashah or Esheh... but we know it is Ashah...