SMW Galaxy:DSCAspect:Subject
Jump to navigation
Jump to search
DSC Class Name: DSC::Subject
Regexes indicating this aspect
def regexes
regexes = {}
JobTitle.new.regexes.each do |regex, rule_sets|
regexes[/(?:D|\s+d)er(.*?)#{regex.source}/i] = {
1 => {
max_words: 4
}
}
# Add more here, e.g. for "das"
# regexes[/\s+das(.*?)#{hcr.source}/i] = {
# max_adjectives: 2
# }
end
return regexes
end
Indications of this aspect make use of the max_words
rule with regard to the number of adjectives that there can be in front of a job title.