word mean distance metric