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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmQwMjE5MTIxYWE2NjNkMzYxZDRhODljMDM3NTJlNTIzM2UxNWE4OQ==
4
+ YWY1N2ViMGU4M2NjMDcxZWQ2NzJmMmE0MTQ2NzEzYmVhMWQ5YWI5Zg==
5
5
  data.tar.gz: !binary |-
6
- ZTJkZDM3M2YzNDg2ODBhMGQxYzZjNTA4ODJlNGM5ZGRjMGZiZWJjMA==
6
+ OWVlZmVhMDdiYzFjNzBiYjM0YzVjMDdkOWYwMzMxYWZlNzMzMDZiNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWNmOWJmZmM4NDg2NjcwM2I5MmZlMDRiMTMxOWZlOGI4NzY1YWQ1ZDYzM2I5
10
- NWIxOTFiMDYxZGIwMjgxY2QzYjc5NjYxYjMwZmFiYzczN2IxNzllNTJhZjhk
11
- NDQxNWE4M2Y3OTE2NDcyNjdiMzU4YmVhYmIxNDA0NGY3MTIyZWI=
9
+ MjcxYWIzMTk2MWI5ZmNkYWJmN2Q0ODNiZTFiY2VjM2VhN2QyYTRhZGQyMmYz
10
+ ZjNjMmFiYjNjMDQ2ZjczZGUxMDE3OWE2YzVkNjEzYWRkY2I1ZGMzYjJhMjUy
11
+ Mzc0YTRlOGUxNGIzNmI0YWYyMTA4N2ZiOGEzOWE4NDUwZTBkNDU=
12
12
  data.tar.gz: !binary |-
13
- ZmJjNGJhYjg4ZTRhNWIwZDljYTU3NjI1OTY4YjJlZGM0OTFkMDJmZmNlNGQy
14
- NWZkZTA2NTk4MThiNGVkZDRmNDZlZjRlNDNiYmIwMzdlMWFmOGNmOTg5YTlj
15
- MzU4NmM3YTFmYzE1YzQ3ZGM5OWI3Nzk3N2Y1MWU4MzQxNmEwMmI=
13
+ MDNlMDg2ODk2MmQ5NTVkMDQ3NzFmNGFiOGRjMTVhZGU5YzEwYzk4OGMyNWNh
14
+ ODZjMTdkYzMxZDgwODliMTNhZWZiZjc2ZWYyNjU1N2U5NDNmZjdiMzBkYTIx
15
+ MjI1MzkyNDc2OGQzYmRlMTZiZmEzNDkyYjkzZjQwMTBiMTIyZDk=
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Wfreq is a graphic user interface application to return a list of words frequency from a text file.
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
- Editor.run
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
- if Ruby is in your PATH, clicking on this Ruby file will start the Widget.
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
- The Application open a window with a large text frame and a menu.
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
 
@@ -1,4 +1,4 @@
1
- # Counting frequency of words in a list
1
+ # A method for counting frequency of words in a list
2
2
  class Counts
3
3
 
4
4
  def self.count(word_list)
@@ -1,7 +1,4 @@
1
- # Split a string into words, o use :-
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']+/)
@@ -1,7 +1,7 @@
1
1
  require 'tk'
2
2
  require_relative 'data'
3
3
  require_relative 'guide'
4
- #____ Install A Run link on the desktop ________________________________
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.0
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-17 00:00:00.000000000 Z
11
+ date: 2015-02-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Wfreq is a graphic user interface application to return a list of words
14
- frequency from a text file.
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 graphic user interface application to return a list of words frequency
53
- from a text file. The GUI is based on Tc/Tk commands
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: []