That's commonly called Grandma's rules, sometimes shortened to gram's rules. I've never seen the spelling "grammer" before, even though gram'r is arguably more correct than gram's.