This often happens with the words of ambiguous genre. An ambiguous word is one that can be used both in masculine or feminine and its meaning does not change, for example: "Internet"
In the dictionary of the Royal Spanish Academy (RAE) you can find at the beginning the abbreviation "amb." This means that it is an ambiguous word.
Internet.
Amb. Global computer network, decentralized, formed by the direct connection between computers through a special protocol of communication.