implement jelinek_mercer (test ok)