<commit_before>  $ sudo apt-get install sqlite3 libsqlite3-dev
  $ sudo gem install hikkmemo

  $ sudo gedit /usr/local/bin/hikkmemo

  #!/usr/bin/env ruby
  # -*- coding: utf-8 -*-
  require 'hikkmemo'
  require "unicode_utils/upcase"
  require 'unicode_utils/lowercase_char_q'

  Readers = Hikkmemo::Readers

  Hikkmemo.run '~/.hikkmemo', {
    :log_to => :console,
    :prompt => '/%b/> ',
    :prompt_color => :red,
    :theme  => :zebra,
    :colors => [:green, :yellow],
    :msg_sz => 50,
    :boards => {
      :c    => Readers.nullchan('/c/'),
      :pr   => Readers.dvach_hk('/pr/'),
      :s    => Readers.dobrochan('/s/'),
      :scii => Readers.iichan('/sci/')
    }
  } do
    hook do |post, board|
      msg = UnicodeUtils.upcase(post[:message])
      if ['RUBY', 'РУБИ', 'РАБИ'].any? {|w| msg.include? w }
        notice "Активность рубиняш в #{post[:thread]}-треде (#{board.to_s})."
      end
    end

    hook :c do |post|
      if UnicodeUtils.lowercase_char? post[:message][0]
        notice "Кто-то написал с маленькой буквы в #{post[:thread]}-треде."
      end
    end

    cmd 'мяу' do |args|
      puts "Мур-мур, #{args.reverse.join(' ')}."
    end

    cmd 'kishki' do
      puts @workers
    end
  end<commit_msg>README.<commit_after>Установка под прыщами:

  $ sudo apt-get install sqlite3 libsqlite3-dev
  $ sudo gem install hikkmemo

Исполняемый конфиг:

  $ sudo gedit /usr/local/bin/hikkmemo

Пример содержимого:

  #!/usr/bin/env ruby
  # -*- coding: utf-8 -*-
  require 'hikkmemo'
  require "unicode_utils/upcase"
  require 'unicode_utils/lowercase_char_q'

  Readers = Hikkmemo::Readers

  Hikkmemo.run '~/.hikkmemo', {
    :log_to => :console,
    :prompt => '/%b/> ',
    :prompt_color => :red,
    :theme  => :zebra,
    :colors => [:green, :yellow],
    :msg_sz => 50,
    :boards => {
      :c    => Readers.nullchan('/c/'),
      :pr   => Readers.dvach_hk('/pr/'),
      :s    => Readers.dobrochan('/s/'),
      :scii => Readers.iichan('/sci/')
    }
  } do
    hook do |post, board|
      msg = UnicodeUtils.upcase(post[:message])
      if ['RUBY', 'РУБИ', 'РАБИ'].any? {|w| msg.include? w }
        notice "Активность рубиняш в #{post[:thread]}-треде (#{board.to_s})."
      end
    end

    hook :c do |post|
      if UnicodeUtils.lowercase_char? post[:message][0]
        notice "Кто-то написал с маленькой буквы в #{post[:thread]}-треде."
      end
    end

    cmd 'мяу' do |args|
      puts "Мур-мур, #{args.reverse.join(' ')}."
    end

    cmd 'kishki' do
      puts @workers
    end
  end

Запуск:

  $ hikkmemo
{'fraction_non_alphanumeric': 0.17258883248730963, 'fraction_numerical': 0.004685669660288949, 'mean_word_length': 2.4668470906630584, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5721867', 'n_tokens_mistral': 1052, 'n_tokens_neox': 1028, 'n_words': 213}