<s> from languages . english import English <EOL> from languages . spanish import Spanish <EOL> class Inflector ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , Inflector = English ) : <EOL> assert callable ( Inflector ) , "<STR_LIT>" <EOL> self . Inflector = apply ( Inflector ) ; <EOL> def pluralize ( self , word ) : <EOL> '''<STR_LIT>''' <EOL> return self . Inflector . pluralize ( word ) <EOL> def singularize ( self , word ) : <EOL> '''<STR_LIT>''' <EOL> return self . Inflector . singularize ( word ) <EOL> def conditionalPlural ( self , numer_of_records , word ) : <EOL> '''<STR_LIT>''' <EOL> return self . Inflector . conditionalPlural ( numer_of_records , word ) <EOL> def titleize ( self , word , uppercase = '<STR_LIT>' ) : <EOL> '''<STR_LIT>''' <EOL> return self . Inflector . titleize ( word , uppercase ) <EOL> def camelize ( self , word ) : <EOL> '''<STR_LIT>''' <EOL> return self . Inflector . camelize ( word ) <EOL> def underscore ( self , word ) : <EOL> '''<STR_LIT>''' <EOL> return self . Inflector . underscore ( word ) <EOL> def humanize ( self , word , uppercase = '<STR_LIT>' ) : <EOL> '''<STR_LIT>''' <EOL> return self . Inflector . humanize ( word , uppercase ) <EOL> def variablize ( self , word ) : <EOL> '''<STR_LIT>''' <EOL> return self . Inflector . variablize ( word ) <EOL> def tableize ( self , class_name ) : <EOL> '''<STR_LIT>''' <EOL> return self . Inflector . tableize ( class_name ) <EOL> def classify ( self , table_name ) : <EOL> '''<STR_LIT>''' <EOL> return self . Inflector . classify ( table_name ) <EOL> def ordinalize ( self , number ) : <EOL> '''<STR_LIT>''' <EOL> return self . Inflector . ordinalize ( number ) <EOL> def unaccent ( self , text ) : <EOL> '''<STR_LIT>''' <EOL> return self . Inflector . unaccent ( text ) <EOL> def urlize ( self , text ) : <EOL> '''<STR_LIT>''' <EOL> return self . Inflector . urlize ( text ) <EOL> def demodulize ( self , module_name ) : <EOL> return self . Inflector . demodulize ( module_name ) <EOL> def modulize ( self , module_description ) : <EOL> return self . Inflector . modulize ( module_description ) <EOL> def foreignKey ( self , class_name , separate_class_name_and_id_with_underscore = <NUM_LIT:1> ) : <EOL> '''<STR_LIT>''' <EOL> return self . Inflector . foreignKey ( class_name , separate_class_name_and_id_with_underscore ) </s>
