#NEWLINE# def _doublec( self , word ) : #NEWLINE# #INDENT# 'doublec(word) is TRUE <=> word ends with a double consonant' #NEWLINE# if ( len ( word ) < 2 ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( word [ ( - 1 ) ] != word [ ( - 2 ) ] ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return self . _cons ( word , ( len ( word ) - 1 ) )