def has_sentiment(s):
    """Return whether sentiment s has a value."""
    return s['sentiment'] in ('strongpositive', 'strongnegative', 'midpositive', 'midnegative', 'neutral', 'positive', 'negative')