The anusvara is always mapped to म् which is wrong as it is sometimes mapped to न् and sometimes to म् depending on the succeeding alphabet Here the output should have been chandan.  Here the output should have been sambandh 