Add a judgement of  a regular expression process to detect the language(s).
reformat codes.