Look at this sentence:
It wasn't quiet what I wanted
And this one:
The music was too quite for me
Obviously quiet and quite are mixed up. Is this considered a spelling mistake? In both cases the words are valid, but used in the wrong place.
Is there a special name for these mistakes? Or are they simply grammatical errors?