Spec text preprocessor