refactor isNumber and lorem into extractor object