Module: Myaso::Mystem::Library

Extended by:
FFI::Library
Defined in:
lib/myaso/mystem/library.rb

Overview

Myaso uses foreign function interface to interact with the mystem shared library.

Constant Summary collapse

QUALITY =

A meaningful mapping between mystem's internal word quality descriptors and the Ruby symbols.

{
  0x00000000 => :dictionary,
  0x00000001 => :bastard,
  0x00000002 => :sob,
  0x00000004 => :prefixoid,
  0x00000008 => :foundling,
  0x00000010 => :bad_request,
  0x00010000 => :from_english,
  0x00020000 => :to_english,
  0x00040000 => :untranslit,
  0x00100000 => :overrode,
  0x01000000 => :fix
}.freeze