getCodewords