]> git.sesse.net Git - autoeconomy/blob - classify.crm
Initial checkin for move to Git (no prior version history available).
[autoeconomy] / classify.crm
1 #! /usr/bin/crm
2 # (account, usedate, weekday, type, text, direction, amount, cssfiles)
3
4 # prefix each text token with text_
5 {
6         match <fromend> [:text:] (:place:) /[[:graph:]]+/
7         alter (:place:) /text_:*:place:/
8         liaf
9 }
10
11 isolate (:m_text:) /account_:*:account: usedate_:*:usedate: weekday_:*:weekday: type_:*:type: :*:text: direction_:*:direction: amount_:*:amount:/
12 isolate (:classify_status:) //
13 classify [:m_text:] <osb unique microgroom> (:*:cssfiles:) (:classify_status:)
14 output /:*:classify_status:/
15 exit