[core][fr] phonet: better code for isSimilAs()