module Linter

Constants

VERSION

Public Class Methods

analyze(text, job_ad: false) click to toggle source
# File lib/linter.rb, line 19
def analyze(text, job_ad: false)
  response = {
    gender_association_analysis: Linter::GenderAssociation.analyze(text),
    pronoun_analysis: Linter::PronounAssociation.analyze(text),
    misused_words_analysis: Linter::MisusedWords.analyze(text)
  }
  response[:mindset_association_analysis] = Linter::MindsetAssociation.analyze(text) if job_ad
  response
end
sources() click to toggle source
# File lib/linter.rb, line 29
def sources
  file_path = File.join(__dir__, '../data/sources.yml')
  YAML.load_file(file_path)
end