def what_to_add(qtype, origword, newword, terminate):
 if (not newword.startswith(origword)):
  return ''
 else:
  qold = quotify(qtype, origword, terminate=False)
  return quotify(qtype, newword, terminate=terminate)[len(qold):]

def what_to_add ( qtype , origword , newword , terminate ) : if ( not newword . startswith ( origword ) ) : return '' else : qold = quotify ( qtype , origword , terminate = False ) return quotify ( qtype , newword , terminate = terminate ) [ len ( qold ) : ]
return a qtype that is needed to finish a partial word .