wfreq 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +8 -8
- data/lib/counts.rb +1 -1
- data/lib/split.rb +1 -4
- data/lib/wfreq.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWY1N2ViMGU4M2NjMDcxZWQ2NzJmMmE0MTQ2NzEzYmVhMWQ5YWI5Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWVlZmVhMDdiYzFjNzBiYjM0YzVjMDdkOWYwMzMxYWZlNzMzMDZiNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjcxYWIzMTk2MWI5ZmNkYWJmN2Q0ODNiZTFiY2VjM2VhN2QyYTRhZGQyMmYz
|
10
|
+
ZjNjMmFiYjNjMDQ2ZjczZGUxMDE3OWE2YzVkNjEzYWRkY2I1ZGMzYjJhMjUy
|
11
|
+
Mzc0YTRlOGUxNGIzNmI0YWYyMTA4N2ZiOGEzOWE4NDUwZTBkNDU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDNlMDg2ODk2MmQ5NTVkMDQ3NzFmNGFiOGRjMTVhZGU5YzEwYzk4OGMyNWNh
|
14
|
+
ODZjMTdkYzMxZDgwODliMTNhZWZiZjc2ZWYyNjU1N2U5NDNmZjdiMzBkYTIx
|
15
|
+
MjI1MzkyNDc2OGQzYmRlMTZiZmEzNDkyYjkzZjQwMTBiMTIyZDk=
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Wfreq is a
|
1
|
+
Wfreq is a graphical user interface text analysis tool. It displays word frequencies from a text file selected through a Dialog Box.
|
2
2
|
|
3
3
|
USAGE:
|
4
4
|
======
|
@@ -6,17 +6,17 @@ Create a text file containing:
|
|
6
6
|
|
7
7
|
```
|
8
8
|
require 'wfreq'
|
9
|
-
|
9
|
+
Wfreq.run
|
10
10
|
```
|
11
11
|
|
12
|
-
save the text file as "wfreq.rbw" or "wfreq.rb" on your desktop if you are using Microsoft Windows as an Operating System.
|
12
|
+
save the text file as "wfreq.rbw" or "wfreq.rb" on your desktop if you are using Microsoft Windows as an Operating System. If Ruby is in your PATH, clicking on this Ruby file will start the Widget.
|
13
13
|
|
14
|
-
|
14
|
+
The Gui
|
15
|
+
-----------
|
16
|
+
This utility app opens a window with a large text frame and a menu on the menubar.
|
17
|
+
Select a file name from the OpenFile Dialog box. Once selected, the frequencies are displayed in the text window sorted in a descending area, each word followed by its frequency.
|
15
18
|
|
16
|
-
|
17
|
-
Select a file name from the opened system window. Once selected the frequency is displayed in the text window sorted in a descending area.
|
18
|
-
|
19
|
-
If you want to save the result appearing in the text window, choose save from the file menu and enter the desired filename.
|
19
|
+
If you want to save the result appearing in the text window, choose save from the file menu and enter the desired filename. It is possible to edit the text area, so that you may delete certain lines which contains irrelevant words such as "the, of, is" or any lines below the first highest frequency words, before saving the result into a file.
|
20
20
|
|
21
21
|
To clear the Text Area select Close or New from the File Menu
|
22
22
|
|
data/lib/counts.rb
CHANGED
data/lib/split.rb
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
#
|
2
|
-
# require_relative 'String_split'
|
3
|
-
# a = "This is part of the string, and this is the rest of it"
|
4
|
-
# puts Splits.words(a)
|
1
|
+
# A method which splits a string into words
|
5
2
|
class Splits
|
6
3
|
def self.words(string)
|
7
4
|
string.downcase.scan(/[\w']+/)
|
data/lib/wfreq.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'tk'
|
2
2
|
require_relative 'data'
|
3
3
|
require_relative 'guide'
|
4
|
-
#
|
4
|
+
# A method to install a Run link on the desktop ________________________________
|
5
5
|
## Save a ".rb" file on desktop which contains : require 'wfreq'; Wfreq.run #####
|
6
6
|
class Wfreq
|
7
7
|
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wfreq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sabry Fattah
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: Wfreq is a
|
14
|
-
|
13
|
+
description: Wfreq is a graphical user interface text analysis tool. It displays word
|
14
|
+
frequencies from a text file selected through a Dialog Box.
|
15
15
|
email: sabryabdelfattah@gmail.com
|
16
16
|
executables: []
|
17
17
|
extensions: []
|
@@ -49,6 +49,7 @@ rubyforge_project:
|
|
49
49
|
rubygems_version: 2.4.5
|
50
50
|
signing_key:
|
51
51
|
specification_version: 3
|
52
|
-
summary: Wfreq is a
|
53
|
-
from a text file. The GUI is based on
|
52
|
+
summary: Wfreq is a graphical user interface text analysis tool. It displays word
|
53
|
+
frequencies from a text file selected through a Dialog Box. The GUI is based on
|
54
|
+
Tc/Tk commands
|
54
55
|
test_files: []
|