Dictionary

How is it we look in a dictionary to figure out how to spell something if we don’t know how to spell it?