Sha256: 95db265f2a5368c6a2176b6d6fee996c0a82a1c27359e688a98595fd5ab974ba

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

require 'engtagger'

module Middleman
  module Blog
    module Similar
      module Tagger
        class Entagger
          def call(article)
            tgr = EngTagger.new
            tagged = tgr.add_tags article.body.gsub(%r{</?[^>]+>}, '')
            tgr.get_nouns(tagged).keys
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
middleman-blog-similar-2.0.1 lib/middleman-blog-similar/tagger/entagger.rb