article-spinner 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/spinner.rb +26 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1c6e669c3acad8db0033f0f3b498a767bf2042eb501eae47a87ea1673beabf48
|
4
|
+
data.tar.gz: 8205a9bd1ad94f0bdd8b75d37504ad71b23562e14a763942820565f6fed25177
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9e40985640225636fdfb14bb5f8271e15086d12e003c0cce90284d7ea4e2ad95d3f72191356519a6b6138a3dd8fc7984136edb2bce27174cf6270512855d4125
|
7
|
+
data.tar.gz: 637701db37ebd13a7a62d34d56d5315166597d4af0cfd2793bc3027466b2ba845a41c4891d32e525c98f71561132fb2d2a50b32f3f8bca9d17ea70db69a40a4b
|
data/spinner.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
class Spinner
|
2
|
+
|
3
|
+
def spin_synonyms (article)
|
4
|
+
lines = IO.readlines("mthesaur.txt")
|
5
|
+
|
6
|
+
line.each do |line|
|
7
|
+
words = line.split(',')
|
8
|
+
words.each do |word|
|
9
|
+
|
10
|
+
article.sub(word, words.sample)
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
return article
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
#def scan_synonyms (article)
|
22
|
+
#end
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: article-spinner
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Asbestosstar, mthesaur contributors
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-06-22 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Helps Spin Article for content generation
|
14
|
+
email: asbestosstar@asbestosstar.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- "./spinner.rb"
|
20
|
+
homepage: https://rubygems.org/gems/hola
|
21
|
+
licenses:
|
22
|
+
- article-spinner
|
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
|
+
rubygems_version: 3.2.32
|
40
|
+
signing_key:
|
41
|
+
specification_version: 4
|
42
|
+
summary: Helps Spin Article for content generation
|
43
|
+
test_files: []
|