Sha256: e5b43f688f94ba4a746beaa8a317ac7c3873c4ec904007e90601fcf48c2d9bc0
Contents?: true
Size: 448 Bytes
Versions: 3
Compression:
Stored size: 448 Bytes
Contents
# frozen_string_literal: true module WordnetJapanDiagram module WordnetJapan class Word < Database self.table_name = 'word' enum :pos, { noun: 'n', # NOTE 名詞 verb: 'v', # NOTE 動詞 adjective: 'a', # NOTE 形容詞 adverb: 'r' # NOTE 副詞 } has_many :senses, foreign_key: :wordid, primary_key: :wordid has_many :synsets, through: :senses end end end
Version data entries
3 entries across 3 versions & 1 rubygems