Text this: An artificial olfactory system and an application thereof