Refactoring WhatLanguage#process_text