The name is first cleaned by the Cleaning routine and then edited by the Formatting routine. The resulting Words-stack contains one word marked as a major, this word is delivered to the Word-key Service to be converted to the 3 byte Word-key.
The fact that the name is first edited by the Formatting routine means that all the Edit-list rules are applied before the major word is selected.