The use of the ord() function at this early stage for text cleaning is a theoretical concept. The goal is to separate English text from extraneous characters or code that may be polluting the sample.