The growing use of digitized mental health applications requires new reliable early screening tools to identify user suicide risk. We used a lexicon-based random forest machine learning algorithm to predict suicide ideation scores from 714 online community text posts from December 2019 to April 2020. We validated predicted scores against expert-rated suicide ideation scores. The algorithm-predicted scores offered high validity and a low error rate and correctly identified 95% of expert-rated high-risk suicide ideation posts. Our findings highlight a potential new method to detect suicidal ideation of digital mental health application users.