Term Mention Detection Algorithm