sentence_interpreter 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/sentence_interpreter.rb +18 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4273f5a0c5ac6d244cbfa9c090d3696d61725840
4
+ data.tar.gz: 92352b555fa5ef7849dcae082ebbb96cff804c9e
5
+ SHA512:
6
+ metadata.gz: c1f0e1f0a3181849f6c7b4916e5810010e599b0c6ea7c42f82ff4aff4ed568a6ac76e5ef187bc6eacfe85b97a86a20e17ab51fa234b0d4d7d12794b46aaa510a
7
+ data.tar.gz: db59b34fb028730bce69bace13fd133a32dd923a235e9b366b72ca4de43cf41c5e82bd18ca336345dbb32c6257b413c6d90f6743b125518e588c2f1d306ccd5a
@@ -0,0 +1,18 @@
1
+ require './lib/phrases.rb'
2
+
3
+ class SentenceInterpreter
4
+
5
+ def self.parse(sentece='')
6
+ Phrases.new(sentence)
7
+ end
8
+
9
+ def self.IO # Run when this script is called directly
10
+ sentence = ARGV.join(" ")
11
+ puts Phrases.new(sentence)
12
+ end
13
+
14
+ end
15
+
16
+ if __FILE__ == $0
17
+ SentenceInterpreter.IO()
18
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sentence_interpreter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Max Pleaner
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-07-03 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: ''
14
+ email: maxpleaner@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - "./sentence_interpreter.rb"
20
+ homepage: http://github.com/maxpleaner/sentence_interpreter
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.5.1
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Parses a sentence into verb-noun phrases
44
+ test_files: []