Class: Vivlio::Starter::CLI::Metrics::VocabularyStats

Inherits:
Data
  • Object
show all
Defined in:
lib/vivlio/starter/cli/metrics/analyzer.rb

Overview

語彙分析結果を保持するイミュータブルデータ

Instance Attribute Summary collapse

Instance Attribute Details

#avg_word_lengthObject (readonly)

Returns the value of attribute avg_word_length

Returns:

  • (Object)

    the current value of avg_word_length



40
41
42
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 40

def avg_word_length
  @avg_word_length
end

#kanji_char_countObject (readonly)

Returns the value of attribute kanji_char_count

Returns:

  • (Object)

    the current value of kanji_char_count



40
41
42
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 40

def kanji_char_count
  @kanji_char_count
end

#kanji_ratioObject (readonly)

Returns the value of attribute kanji_ratio

Returns:

  • (Object)

    the current value of kanji_ratio



40
41
42
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 40

def kanji_ratio
  @kanji_ratio
end

#tokens_mapObject (readonly)

Returns the value of attribute tokens_map

Returns:

  • (Object)

    the current value of tokens_map



40
41
42
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 40

def tokens_map
  @tokens_map
end

#total_char_countObject (readonly)

Returns the value of attribute total_char_count

Returns:

  • (Object)

    the current value of total_char_count



40
41
42
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 40

def total_char_count
  @total_char_count
end

#total_tokensObject (readonly)

Returns the value of attribute total_tokens

Returns:

  • (Object)

    the current value of total_tokens



40
41
42
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 40

def total_tokens
  @total_tokens
end

#total_word_lengthObject (readonly)

Returns the value of attribute total_word_length

Returns:

  • (Object)

    the current value of total_word_length



40
41
42
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 40

def total_word_length
  @total_word_length
end

#ttrObject (readonly)

Returns the value of attribute ttr

Returns:

  • (Object)

    the current value of ttr



40
41
42
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 40

def ttr
  @ttr
end

#unique_tokensObject (readonly)

Returns the value of attribute unique_tokens

Returns:

  • (Object)

    the current value of unique_tokens



40
41
42
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 40

def unique_tokens
  @unique_tokens
end