In other languages, sometimes there are rules which tells you how to write a word. For example, in Spanish, you can never write a word with "nb" together, if a word sounds like it, then it's spelled with "nv". (For example, it's written invierno and not inbierno, both words sound the same, but there is only one way to write them rightly)
In English I have the problem of remember which words are written which 2 equal consonants together. Those words usually have a spanish alike equivalent, which is written with only one consonant, which leads me to have several times written mistakes. Therefore I would like to know,
Is there any grammatical rule which tells you when an english word has to be written with 2 equal consonants together?