merge partialwordthreshold.py into partialword.py