// This filters out replies (that Twitter understands are replies) function has_in_reply_to_status_id(tweet) { if (tweet.in_reply_to_status_id === null) return false; else return true; } // This filters out tweets that start with a mention, which are almost always replies function is_user_mention_at_start(tweet) { if (tweet.entities.user_mentions.length > 0) { if (tweet.entities.user_mentions[0].indices[0] === 0) return true; } }