markov_chain_chat_bot 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/markov_chain.rb +9 -3
  2. metadata +2 -2
data/lib/markov_chain.rb CHANGED
@@ -22,7 +22,7 @@ class MarkovChain
22
22
  #
23
23
  # appends +states+ to the end of this MarkovChain.
24
24
  #
25
- # +states+ is an array of arbitrary objects.
25
+ # +states+ is an Array of arbitrary objects.
26
26
  #
27
27
  # It returns this (modified) MarkovChain.
28
28
  #
@@ -39,8 +39,14 @@ class MarkovChain
39
39
 
40
40
  #
41
41
  # returns Enumerable of predicted states. The states are predicted by
42
- # states passed to #append!(). The result may contain nils if
43
- # the MarkovChain can not predict a state.
42
+ # states passed to #append!().
43
+ #
44
+ # The result may contain nils. Each nil means that MarkovChain could not
45
+ # predict a state after the one before nil. Example:
46
+ #
47
+ # markov_chain.predict().take(4) #=> ["a", "c", "b", nil]
48
+ #
49
+ # That means +markov_chain+ could not predict a state after "b".
44
50
  #
45
51
  def predict()
46
52
  self.extend(Prediction)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markov_chain_chat_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-17 00:00:00.000000000 Z
12
+ date: 2015-03-21 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A chat bot utilizing Markov chains. It speaks Russian and English.
15
15
  email: Lavir.th.Whiolet@gmail.com