Thank you for putting this together, I'm getting a lot of use out of it. 5/5 stars!
I don't know if you prefer bug reports here or at the DF forums, apologies if this is the wrong place.
I am spelunking through the magic of traits and I believe your value representing the 25-39 range actually sends the dwarf into the 40-60 range.
I have here Tulon Asteshzulban, DF 0.31.21 Fortress Mode dwarf. Among her thoughts and preferences, she rarely feels discouraged, which Runesmith 0.1.9 reports correctly to start under Traits, and Dwarf Therapist 0.6.10 informs me is a Depression of 39. I set "Rarely feels discouraged" to itself in the Runesmith dropdown, write my changes, and Runesmith still shows it there on refresh, but no depression-associated thought/pref is shown in DF, and Therapist doesn't say anything either.
I have a dwarf in an un-runesmith'd 0.31.21 save which reports Adventure and Urge in Runesmith but not DF or Therapist, you're welcome to it if it'll help.
Thanks again for working on this project, I'd be at a loss without it.