working code rever to map to noun tag