'Return the canonical title, guessing its language.
The title can be forces with the \'title\' argument (internally
used) and the language can be forced with the \'lang\' argument,
otherwise it\'s auto-detected.'

def smartCanonicalTitle(self, title=None, lang=None):

    if (title is None):
        title = self.data.get('title', u'')
    if (lang is None):
        lang = self.guessLanguage()
    return canonicalTitle(title, lang=lang)
