Hello there,
I am new to processing and I havent been doing any programming for years,
I had an idea about a little program, that can do lots of different types of
string manipulation and analysis...
This could make for a cool little freeware, I am looking for people to help...
The program doesnt have a name, (if you want come up with one)
The purposes I can think of are:
Fun, Analyzing literary styles, Simple text cyphering and distorting for messages,
Some of the text output could be used by graphic designers...
Here are the Features:
In a given text file...
Count words:
Create a word histogram:
A list of unique words and the times they appear,
An universal omit feature that can work for almost all function
where you can omit words like "the, a, is, are, etc..."
Average word size and word size histogram:
The average word size for the whole document - with the Omit feature
Word size histogram: a list of word lengths and times they appear
n th word:
create a list or paragraph made up of every n th word in the text
Example:
I like to read books and play the guitar. n=2
output:
like read and the
with the Omit feature turned on - Omiting " to, and, the"
output:
like books guitar
extra n th word features:
remove every n th word
n th word starting with a initial x th word - find n th word starting with 102 nd word
reverse function:
reverse each sentence:
I am Tom from Hawai
output:
Hawai from Tom am I
reverse the whole text from beginning to end:
Today the weather ........ and that was it.
It was that and ........ weather the today.
reverse every word:
I love you.
output:
I evol uoy.
Randomize Function:
Randomize the words order in the text.
Randomize the words in ieach sentence.
Randomize the letters in each word.
Randomize the letters in each word keeping the first and last letters.
Example:
My account here is swell.
output:
My aucocnt hree is slewl.
Remove space and dots and turn to all Caps function:
input:
Tom was a little boy. He ran 2 miles a day.
output:
TOMWASALITTLEBOYHERAN2MILESADAY
Pick Words Function:
Pick every word after a certain word...
Example: Pick words after "the"
I play the guitar at the bar.
output:
guitar bar
Pick every word that starts or ends with a certain letter or letters...
Cypher:
assign (two digit) numbers or letters to the alphabet and re-write the text in numbers...
example: a=32 c=23 e=11
ACE output 322311
a=b c=z e=f
ACE output BZF
Given a message and a text that contains the
words in the message output a list of numbers
for the places of words to decypher the text...
example:
input:
I love her but it's this programming habit that's getting in the way.
and
I love programming
output:
1, 2, 7
and vice versa:
input:
I love her but it's this programming habit that's getting in the way.
and
1, 2, 7
output:
I love programming
-----------------------------------------------------------------------
well this is it...
A nice GUI coul also be nice...
So right now I am looking for help,
either in programming or maybe in pointing me
in the right direction...
Any input is appreciated...
Thanx
P.S: No I am not on drugs in case you wondered :)
I am new to processing and I havent been doing any programming for years,
I had an idea about a little program, that can do lots of different types of
string manipulation and analysis...
This could make for a cool little freeware, I am looking for people to help...
The program doesnt have a name, (if you want come up with one)
The purposes I can think of are:
Fun, Analyzing literary styles, Simple text cyphering and distorting for messages,
Some of the text output could be used by graphic designers...
Here are the Features:
In a given text file...
Count words:
Create a word histogram:
A list of unique words and the times they appear,
An universal omit feature that can work for almost all function
where you can omit words like "the, a, is, are, etc..."
Average word size and word size histogram:
The average word size for the whole document - with the Omit feature
Word size histogram: a list of word lengths and times they appear
n th word:
create a list or paragraph made up of every n th word in the text
Example:
I like to read books and play the guitar. n=2
output:
like read and the
with the Omit feature turned on - Omiting " to, and, the"
output:
like books guitar
extra n th word features:
remove every n th word
n th word starting with a initial x th word - find n th word starting with 102 nd word
reverse function:
reverse each sentence:
I am Tom from Hawai
output:
Hawai from Tom am I
reverse the whole text from beginning to end:
Today the weather ........ and that was it.
It was that and ........ weather the today.
reverse every word:
I love you.
output:
I evol uoy.
Randomize Function:
Randomize the words order in the text.
Randomize the words in ieach sentence.
Randomize the letters in each word.
Randomize the letters in each word keeping the first and last letters.
Example:
My account here is swell.
output:
My aucocnt hree is slewl.
Remove space and dots and turn to all Caps function:
input:
Tom was a little boy. He ran 2 miles a day.
output:
TOMWASALITTLEBOYHERAN2MILESADAY
Pick Words Function:
Pick every word after a certain word...
Example: Pick words after "the"
I play the guitar at the bar.
output:
guitar bar
Pick every word that starts or ends with a certain letter or letters...
Cypher:
assign (two digit) numbers or letters to the alphabet and re-write the text in numbers...
example: a=32 c=23 e=11
ACE output 322311
a=b c=z e=f
ACE output BZF
Given a message and a text that contains the
words in the message output a list of numbers
for the places of words to decypher the text...
example:
input:
I love her but it's this programming habit that's getting in the way.
and
I love programming
output:
1, 2, 7
and vice versa:
input:
I love her but it's this programming habit that's getting in the way.
and
1, 2, 7
output:
I love programming
-----------------------------------------------------------------------
well this is it...
A nice GUI coul also be nice...
So right now I am looking for help,
either in programming or maybe in pointing me
in the right direction...
Any input is appreciated...
Thanx
P.S: No I am not on drugs in case you wondered :)