Texttotree works on two levels. First, we build templates of trees using an algorithm called Space Colonisation. Second, we use a process called Sentiment Analysis to score both the trees and your text according to four basic emotions (Joy, Fear, Sadness, Anger) and two general states (Positive, Negative).

Once your text has a score, we match it to a suitable tree. (By calculating the distance between the text and all tree-templates in a multidimensional space.)

Just going from text-to-tree.