'Submits content to Akismet to check if it\'s spam or not.
Takes optional keys sent over to Akismet, as defined on
http://akismet.com/development/api/#comment-check
:raises AkismetError: if the response from Akismet was unexpected
:rtype: bool
Required:
:param str user_ip: The IP address of the user submitting the content
:param str user_agent: The user agent of the user submitting the data
Optional:
:param str referrer: The content of the HTTP_REFERER header should
be sent here.
:param str permalink: The permanent location of the entry the
comment was submitted to
:param str comment_type: May be blank, comment, trackback, pingback,
or a made up value like "registration".
:param str comment_author: Name submitted with the comment.
:param str comment_author_email: Email address submitted with the
comment.
:param str comment_author_url: URL submitted with comment.
:param str comment_content: The content that was submitted.
:param str blog_lang: Indicates the language(s) in use on the blog or
site, in ISO 639-1 format, comma-separated.
A site with articles in English and French
might use "en, fr_ca".
:param str blog_charset: The character encoding for the form values
included in comment_* parameters,
such as "UTF-8" or "ISO-8859-1".'

def check_comment(self, user_ip, user_agent, **optional):

    response = self.send('comment-check', user_ip=user_ip, user_agent=user_agent, **optional)
    try:
        return {'true': True, 'false': False}[response.text]
    except KeyError:
        self.handle_error(response)
