pwdyson/inflect.py — pull request #12 by yavarhusain (2013-06-12 18:46:37+00:00)
Title: TypeError while parsing COMPUNDS ("Governor General", "mother-in-law", "aide-de-camp", ETC.)

The function call [_sinounoun(lowersplit[.....] at line 2327 in
inflect.py returns either a word (string) or a bool(FALSE). Now when the
concatenation through + operator happens, it tries to concatenate a bool
(say FALSE) with a string and hence fails with an exception (TypeError,
concatenating bool with str). It works perfectly fine when a string is
returned. Failing examples: p.singular_noun('hello-in-there'),
p.singular_noun('hello in there')