[refactor] extract a language extract method to a class, but do not connect yet, just testing