Determine types of all magic words