Question: how fsm work as a language recognizer?
Answer: The language accepted (or recognized) by an FSM is the set of all strings it recognizes when used in recognition mode. The language generated by an FSM is the set of all strings it can generate when used in generation mode. The language accepted and the language generated by an FSM are exactly the same.