The idea of VietPad is based on the use of dictionary file and each non-diacritic word is mapped 1-1 into diacritic word.
the dictionary file also is stored many words which are rarely used so these words is incorrectly restored accent.