learn_create 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +11 -0
- data/Rakefile +6 -0
- data/lib/learn_create.rb +68 -0
- metadata +46 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 903549ca736bf886573ce3d96705ab0a7c0af2bc39c4def319085e0448a5152a
|
4
|
+
data.tar.gz: 799a788451c7cf408ab9f4f3716de233513d8c38ce35fb54ba0b86c21c163126
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b7b04f6d1872827fe1f52ab3093ad39280ecc8eb72299f6a63b3bb590f9a67550c77e26e7cab8211541567fb0c5ed078fa159ddfcf5db555096a25046c48ce12
|
7
|
+
data.tar.gz: 23053dc0b57f1f40c18b2dd8609ad6a7fbeac645ce6140d60bd4080dba8bca659956d88712312424cb4ba318aee9464fb2de5f2607aabcd072d85f138a00c0ce
|
data/Gemfile
ADDED
data/Rakefile
ADDED
data/lib/learn_create.rb
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
require 'json'
|
2
|
+
require 'require_all'
|
3
|
+
require 'odyssey'
|
4
|
+
require 'awesome_print'
|
5
|
+
|
6
|
+
class LearnCreate
|
7
|
+
def self.new
|
8
|
+
puts 'hi'
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.test
|
12
|
+
puts 'test'
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
# def self.check(filename = "README.md")
|
17
|
+
# puts "Checking the contents of #{filename}..."
|
18
|
+
# fh = open filename
|
19
|
+
# content = fh.read
|
20
|
+
# fh.close
|
21
|
+
#
|
22
|
+
# average_readability = Odyssey.ari(content, false)
|
23
|
+
# coleman_liau = Odyssey.coleman_liau(content, false)
|
24
|
+
# grade_level = Odyssey.flesch_kincaid_grade_level(content, false)
|
25
|
+
# readability_ease = Odyssey.flesch_kincaid_reading_ease(content, false)
|
26
|
+
# gunning_fog = Odyssey.gunning_fog(content, false)
|
27
|
+
# smog = Odyssey.smog(content, false)
|
28
|
+
# text = Odyssey.fake_formula(content, true)
|
29
|
+
#
|
30
|
+
# gender_specific_words = ["he", "she", "him", "her"]
|
31
|
+
# .select { |word|
|
32
|
+
# text["score"]["words"].include?(word)
|
33
|
+
# }
|
34
|
+
#
|
35
|
+
# relevant_words = ["readme", "code along", "codealong", "lab", "test"]
|
36
|
+
# .select { |word|
|
37
|
+
# text["score"]["words"].include?(word)
|
38
|
+
# }
|
39
|
+
#
|
40
|
+
# irrelevant_words = ["a", "an", "and", "the", "like", "with", "through", "over", "before", "at", "of", "to", "in", "for", "on", "by", "between", "after", "since", "without", "under", "beyond", "near", "above", "off", "down", "except", "about", "learn", "co", "open", "really", "we're" ]
|
41
|
+
# word_hash = {}
|
42
|
+
# text["score"]["words"]
|
43
|
+
# .select {|word| !irrelevant_words.include?(word.downcase)}
|
44
|
+
# .each {|word|
|
45
|
+
# word_hash.key?(word) ? word_hash[word] += 1 : word_hash[word] = 1
|
46
|
+
# }
|
47
|
+
#
|
48
|
+
# puts "Automated Readability Index (1 => Kindergarten, 8 => 7th Grade, 14+ => College Level):"
|
49
|
+
# puts average_readability
|
50
|
+
# puts ""
|
51
|
+
# puts "Coleman Liau Index (1 => Kindergarten, 8 => 7th Grade, 14+ => College Level):"
|
52
|
+
# puts coleman_liau
|
53
|
+
# puts ""
|
54
|
+
# puts "Flesch Kincaid Grade Level (1 => Kindergarten, 8 => 7th Grade, 14+ => College Level):"
|
55
|
+
# puts grade_level
|
56
|
+
# puts ""
|
57
|
+
# puts "Flesch Kincaid Reading Ease (100.0-90.0 => 5th Grade, 80.0-70.0 => 7th Grade, 50.0-30.0 => College Level):"
|
58
|
+
# puts readability_ease
|
59
|
+
# puts ""
|
60
|
+
# puts "Gunning Fog Index (7 => 7th grade, 10 => 10th Grade, 13-16 => College Level):"
|
61
|
+
# puts gunning_fog
|
62
|
+
# puts ""
|
63
|
+
# puts "Smog Index (7 => 7th grade, 10 => 10th Grade, 13-16 => College Level):"
|
64
|
+
# puts smog
|
65
|
+
# puts ""
|
66
|
+
#
|
67
|
+
# puts "Gender specific words: #{gender_specific_words}"
|
68
|
+
# end
|
metadata
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: learn_create
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- flatironschool
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-10-10 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description:
|
14
|
+
email:
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- Gemfile
|
20
|
+
- Rakefile
|
21
|
+
- lib/learn_create.rb
|
22
|
+
homepage:
|
23
|
+
licenses:
|
24
|
+
- MIT
|
25
|
+
metadata: {}
|
26
|
+
post_install_message:
|
27
|
+
rdoc_options: []
|
28
|
+
require_paths:
|
29
|
+
- lib
|
30
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
requirements: []
|
41
|
+
rubyforge_project:
|
42
|
+
rubygems_version: 2.7.6
|
43
|
+
signing_key:
|
44
|
+
specification_version: 4
|
45
|
+
summary: learn_create is a tool for creating learn.co lessons on github
|
46
|
+
test_files: []
|