Fixed error in note type check ("japanese")

The code now searches for a matching word in the noteName, not the
reverse.