Sha256: a81df75798a0b40c3d7cc1b4bf2751aba7f13afbd898c395b35f7d81204209b5

Contents?: true

Size: 367 Bytes

Versions: 4

Compression:

Stored size: 367 Bytes

Contents

module MESH
  class LexicalTypes

    def self.[](key)
      Types[key]
    end

    Types = {
      'ABB' => :abbreviation,
      'ABX' => :embedded_abbreviation,
      'ACR' => :acronym,
      'ACX' => :embedded_acronym,
      'EPO' => :eponym,
      'LAB' => :lab_number,
      'NAM' => :proper_name,
      'NON' => nil,
      'TRD' => :trade_name
    }

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mesh-medical-subject-headings-3.0.0 lib/MESH/lexical_types.rb
mesh-medical-subject-headings-2.3.0 lib/MESH/lexical_types.rb
mesh-medical-subject-headings-2.2.1 lib/MESH/lexical_types.rb
mesh-medical-subject-headings-2.2.0 lib/MESH/lexical_types.rb