def addAttributeWord(evaluatorWords, word):
 if (len(word) < 2):
  evaluatorWords.append(word)
  return
 if (word[0] != '.'):
  evaluatorWords.append(word)
  return
 dotIndex = word.find('.', 1)
 if (dotIndex < 0):
  evaluatorWords.append(word)
  return
 evaluatorWords.append(word[:dotIndex])
 addAttributeWord(evaluatorWords, word[dotIndex:])

def addAttributeWord ( evaluatorWords , word ) : if ( len ( word ) < 2 ) : evaluatorWords . append ( word ) return if ( word [ 0 ] != '.' ) : evaluatorWords . append ( word ) return dotIndex = word . find ( '.' , 1 ) if ( dotIndex < 0 ) : evaluatorWords . append ( word ) return evaluatorWords . append ( word [ : dotIndex ] ) addAttributeWord ( evaluatorWords , word [ dotIndex : ] )
add attribute word and remainder if the word starts with a dot .