~ubuntu-branches/ubuntu/utopic/tdiary/utopic

« back to all changes in this revision

Viewing changes to contrib2/filter/plugin/en/spambayes.rb

  • Committer: Bazaar Package Importer
  • Author(s): Daigo Moriwaki
  • Date: 2011-04-11 21:53:16 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110411215316-ih4gt4q8p29d2wf8
Tags: 3.0.1-1
* New upstream release (Closes: #542801, #594947)
* debian/control:
 - Bumped up Standards-Version to 3.9.1.
 - Updated version dependency.
* debian/tdiary-setup.rb: Followed the upstream changes, incorporating js and
  index.fcgi

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2007, KURODA Hiraku <hiraku@hinet.mydns.jp>
 
2
# You can redistribute it and/or modify it under GPL2. 
 
3
 
 
4
class SpambayesConfig
 
5
        module Res
 
6
                module_function
 
7
                def title
 
8
                        "Bayes filter"
 
9
                end
 
10
 
 
11
                def check_comment
 
12
                        "Check comments"
 
13
                end
 
14
 
 
15
                def check_referer
 
16
                        "Check referers"
 
17
                end
 
18
 
 
19
                def token_list(type)
 
20
                        "#{type}-token list"
 
21
                end
 
22
 
 
23
                def rebuild_db
 
24
                        "Rebuild database"
 
25
                end
 
26
 
 
27
                def use_bayes_filter
 
28
                        "Use Bayes-filter"
 
29
                end
 
30
 
 
31
                def use_filter_to_referer
 
32
                        "Use Bayes-filter to referer"
 
33
                end
 
34
 
 
35
                def save_error_log
 
36
                        "Save error-log at cache-directory"
 
37
                end
 
38
 
 
39
                def threshold
 
40
                        "Threshold"
 
41
                end
 
42
 
 
43
                def receiver_addr
 
44
                        "Mail TO"
 
45
                end
 
46
 
 
47
                def register_ham
 
48
                        "Register as HAM"
 
49
                end
 
50
 
 
51
                def register_spam
 
52
                        "Register as spam"
 
53
                end
 
54
 
 
55
                def comment_processed
 
56
                        "Comments processed"
 
57
                end
 
58
 
 
59
                def token
 
60
                        "token"
 
61
                end
 
62
 
 
63
                def probability(type)
 
64
                        "#{type}-probability"
 
65
                end
 
66
 
 
67
                def score_in_db(type)
 
68
                        "score in #{type}-database"
 
69
                end
 
70
 
 
71
                def execute_after_click_OK
 
72
                        "Execute if you click OK"
 
73
                end
 
74
 
 
75
                def registered_as(type)
 
76
                        "registered as #{type}"
 
77
                end
 
78
 
 
79
                def rebuild_db_after_click_OK
 
80
                        "Rebuild database from corpus if you click OK"
 
81
                end
 
82
 
 
83
                def processed_referer
 
84
                        "Referer processed"
 
85
                end
 
86
 
 
87
                def token_of_referer
 
88
                        "token of referer"
 
89
                end
 
90
 
 
91
                def mail
 
92
                        "Mail address"
 
93
                end
 
94
 
 
95
                def posted_host_addr
 
96
                        "Host-IP from which comment posted"
 
97
                end
 
98
 
 
99
                def name
 
100
                        "Name"
 
101
                end
 
102
 
 
103
                def referer
 
104
                        "Referer"
 
105
                end
 
106
 
 
107
                def url_in_comment
 
108
                        "URL in comment"
 
109
                end
 
110
 
 
111
                def comment_body_and_keyword
 
112
                        "Text in comment and Keyword in search-engine's referer"
 
113
                end
 
114
 
 
115
                def no_token_exist
 
116
                        "(No token exists)"
 
117
                end
 
118
 
 
119
                def spam_rate
 
120
                        "Rate of spam"
 
121
                end
 
122
        end
 
123
end