programr 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +10 -3
- data/lib/programr/aiml_parser.rb +0 -1
- data/lib/programr/environment.rb +2 -2
- data/lib/programr/version.rb +1 -1
- metadata +8 -10
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 65705424e65a829416c8213f66bb01c56de5ef7a
|
4
|
+
data.tar.gz: f0944b32fed286e5b9024285b0c3a30411873c50
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dd9da92acf32a40a3b7d8f48d4b529335c556c90e4373b5c93704feeec6fa21fe2f1c4238090293453eec3668ebdb773179ef57e158de0fb6d0a50654529518c
|
7
|
+
data.tar.gz: 9bf5a5d01bc2c02f19e93f72828c7f4938e8d9ace32b9ad18e66a6f00dea0873454915e0fd2d9bbc2c0d39f6f74fb294814efa2cf13c22bca19679713401949d
|
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# ProgramR
|
2
2
|
|
3
3
|
### Aside:
|
4
4
|
|
5
5
|
This is just a simple port of http://aiml-programr.rubyforge.org/ (authored in 2007), to something
|
6
|
-
a tiny bit more usable. No new code really, I just sorta took the necessary parts to turn it into a gem for
|
6
|
+
a tiny bit more usable. No new code really, I just sorta took the necessary parts to turn it into a gem for curiosity's sake.
|
7
7
|
|
8
8
|
AIML itself seems pretty simple, and weak as far as pattern matching goes, but the ALICE bot has won the Loebner prize, so there's that.
|
9
9
|
|
@@ -11,7 +11,10 @@ AIML itself seems pretty simple, and weak as far as pattern matching goes, but t
|
|
11
11
|
|
12
12
|
ProgramR is a Ruby implementation of an interpreter for the Artificial Intelligence Markup Language (AIML) based on the work of Dr. Wallace and defined by the Alicebot and AIML Architecture Committee of the A.L.I.C.E. AI Foundation http://alicebot.org
|
13
13
|
|
14
|
-
|
14
|
+
Some of the ALICE AIML files have thrown parse errors with certain caraters in my tests, so a subset is available here: https://github.com/robertjwhitney/alice-programr
|
15
|
+
|
16
|
+
|
17
|
+
### Original Authors:
|
15
18
|
|
16
19
|
Mauro Cicio, Nicholas H.Tollervey and Ben Minton
|
17
20
|
|
@@ -30,6 +33,10 @@ Or install it yourself as:
|
|
30
33
|
|
31
34
|
$ gem install programr
|
32
35
|
|
36
|
+
You can find a set of ALICE AIML files hosted at http://code.google.com/p/aiml-en-us-foundation-alice
|
37
|
+
|
38
|
+
Some of them have thrown errors in my tests so a subset is available here: https://github.com/robertjwhitney/alice-programr
|
39
|
+
|
33
40
|
## Usage
|
34
41
|
```ruby
|
35
42
|
#programr_test.rb
|
data/lib/programr/aiml_parser.rb
CHANGED
data/lib/programr/environment.rb
CHANGED
@@ -61,11 +61,11 @@ class Environment
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def question
|
64
|
-
@@readOnlyTags['question'][rand(@@readOnlyTags['question'].length
|
64
|
+
@@readOnlyTags['question'][rand(@@readOnlyTags['question'].length)]
|
65
65
|
end
|
66
66
|
|
67
67
|
def getRandom(anArrayofChoices)
|
68
|
-
anArrayofChoices[rand(anArrayofChoices.length
|
68
|
+
anArrayofChoices[rand(anArrayofChoices.length)]
|
69
69
|
end
|
70
70
|
|
71
71
|
def getStimula(anIndex)
|
data/lib/programr/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: programr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Mauro Cicio, Nicholas H.Tollervey, Ben Minton and Robert J Whitney
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2017-11-28 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: Ruby interpreter for the AIML
|
15
14
|
email:
|
@@ -18,7 +17,7 @@ executables: []
|
|
18
17
|
extensions: []
|
19
18
|
extra_rdoc_files: []
|
20
19
|
files:
|
21
|
-
- .gitignore
|
20
|
+
- ".gitignore"
|
22
21
|
- Gemfile
|
23
22
|
- LICENSE
|
24
23
|
- README.md
|
@@ -45,27 +44,26 @@ files:
|
|
45
44
|
- test/test_utils.rb
|
46
45
|
homepage: http://aiml-programr.rubyforge.org/
|
47
46
|
licenses: []
|
47
|
+
metadata: {}
|
48
48
|
post_install_message:
|
49
49
|
rdoc_options: []
|
50
50
|
require_paths:
|
51
51
|
- lib
|
52
52
|
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
53
|
requirements:
|
55
|
-
- -
|
54
|
+
- - ">="
|
56
55
|
- !ruby/object:Gem::Version
|
57
56
|
version: '0'
|
58
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
58
|
requirements:
|
61
|
-
- -
|
59
|
+
- - ">="
|
62
60
|
- !ruby/object:Gem::Version
|
63
61
|
version: '0'
|
64
62
|
requirements: []
|
65
63
|
rubyforge_project:
|
66
|
-
rubygems_version:
|
64
|
+
rubygems_version: 2.6.13
|
67
65
|
signing_key:
|
68
|
-
specification_version:
|
66
|
+
specification_version: 4
|
69
67
|
summary: ProgramR is a Ruby implementation of an interpreter for the Artificial Intelligence
|
70
68
|
Markup Language (AIML) based on the work of Dr. Wallace and defined by the Alicebot
|
71
69
|
and AIML Architecture Committee of the A.L.I.C.E. AI Foundation (http://alicebot.org
|