Skip to content

jemmanuel/checkup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

checkup

Build Status godoc reference

checkup is a package for actively monitoring Twitter feeds to detect suicidal language.

Example

for _, tweet := range tweets {
	//Scan tweet for flag phrases
	flag := checkup.Scan(tweet, nil)

	//If there is a flag, check history of tweets for negative sentiments
	
	if flag {
		//Get last tweets from that user
		prevTweetStrings := []string{}
		for _, pt := range previousTweets {
			prevTweetStrings = append(prevTweetStrings, pt.Text)
		}
		negativeHistory := checkup.CheckPreviousTweetSentiments(prevTweetStrings, httpClient)
		if negativeHistory {
			fmt.Println("Flagged Tweet!")
			//Send email alert
		}
	}
}

Dependencies

checkup uses the anaconda package as a Twitter client Research

checkup was inspired by BYU's research

About

Checkup Social Monitoring and Suicide Prevention

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published