473,386 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Filters like old skool Jive, Fudd, Valspeak... Text transformation in Python

I would like to learn how to roll my own filter ala early 90's filters
like Jive, Fudd, Kraut, Moron, etc, that take text as an input, and
re-writes the text adding general hilarity of various linguistic flavor
(depending on the filter).

I always loved running my philosophy papers, or anything that sounded
"too dang serious" through filters. Gave me a new perspective on my own
writing.

Running the screenplay of the Empire Strikes Back through the Kraut
filter, particularly the scene where Vader reveals Skywalker's true
lineage, is amusing. No offense to good Germans everywhere. I'm sure
someone could write a good "American" filter than would be a gag on
American obsession with success and work, being happy 100% of the time,
etc.

Anyway, I'd like to see an old skool filter written in Python so I can
write my own filters. There's an old prof of mine so, erm,
linguistically unique, that I absolutely must write a Prof X filter to
share with old college buds. I need to encapsulate / generate a model
of the Prof's speech patterns for posterity and "educational purposes
only" - ok, for entertainment.

A fun way to learn more about Python and text processing.

Any good "generators" written in Python? I'd like to roll me one of
these as well; e.g. execute the program and it will create a few
paragraphs of text in the jargon of a discipline, subdiscipline,
subculture, etc. Anyone know what I'm talking about?

Thanks.

Apr 5 '06 #1
5 2512
da*****@yahoo.com wrote:

(snip part about filters)
Any good "generators" written in Python? I'd like to roll me one of
these as well; e.g. execute the program and it will create a few
paragraphs of text in the jargon of a discipline, subdiscipline,
subculture, etc. Anyone know what I'm talking about?


There's a Kant generator example in Dive Into Python:
http://diveintopython.org/xml_processing/index.html
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Apr 5 '06 #2
bruno at modulix wrote:
There's a Kant generator example in Dive Into Python:
http://diveintopython.org/xml_processing/index.html


Thanks Bruno! Perhaps I could modify it to throw in some Hume and
Wittgenstein, mix it all up in a syntactic / semantic blender and
REALLY confuse people. Word Games indeed. :-)

Or throw in stuff by whichever philosopher who wrote a book called "The
Meaning of Meaning", to add some metaphoric recursion. And that what be
one heck of a Frankenstenian (but only 1 part Wittgensteinian)
Robo-philosopher.

Dana

Apr 5 '06 #3
On 5 Apr 2006 13:44:48 -0700 in comp.lang.python, da*****@yahoo.com
wrote:
bruno at modulix wrote:
There's a Kant generator example in Dive Into Python:
http://diveintopython.org/xml_processing/index.html


Thanks Bruno! Perhaps I could modify it to throw in some Hume and
Wittgenstein, mix it all up in a syntactic / semantic blender and
REALLY confuse people. Word Games indeed. :-)

Or throw in stuff by whichever philosopher who wrote a book called "The
Meaning of Meaning", to add some metaphoric recursion. And that what be
one heck of a Frankenstenian (but only 1 part Wittgensteinian)
Robo-philosopher.


Don't forget the famous American philosopher who contemplated the
meaning of is.

Regards,
-=Dave

--
Change is inevitable, progress is not.
Apr 5 '06 #4
Dave Hansen wrote:
Don't forget the famous American philosopher who contemplated the
meaning of is.


Unfortunately, until he gives us a definition, we'll never really know
who he is... :)
Apr 5 '06 #5
> Any good "generators" written in Python? I'd like to roll me one of
these as well; e.g. execute the program and it will create a few
paragraphs of text in the jargon of a discipline, subdiscipline,
subculture, etc. Anyone know what I'm talking about?


Perhaps you might be interested in this (contains a link to a Python
script):

http://en.wikipedia.org/wiki/Mark_V_Shaney

Apr 5 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tim Fitzpatrick | last post by:
Hi all I'm fairly new to Python with PIL and I'm having some problems with the BILINEAR/BICUBIC filters when rotating and transforming images. If I use resize() with NEAREST, BILINEAR and...
0
by: Aaron Straup Cope | last post by:
Hi, Included below is a copy of a message I sent to the py-tutor list. It didn't garner much in the way of a solution and it was suggested that this list might be helpful. Thanks, ...
3
by: pradeep gummi | last post by:
I have an XML FILE that is to be converted to Plain Text using an XSL file. Since I just want plain text, I do not want to set any root element during transformation.And if I do not any root...
6
by: TJO | last post by:
Below is some sample code that fades div tags that is not working in IE 6.0.29 on xp sp2. Can anyone help see why the if(ie5) document.getElementById(divID).filters.alpha.opacity lines are not...
1
by: Dieter Vanderelst | last post by:
Hello, I'm trying to access the Filters-Dll provided by the filters-project (http://filters.sourceforge.net/index.htm). Following the advice I got from the Python list -thank you for that-, I...
0
by: wyattroerb | last post by:
Hi, like a lot of other newbies in xml i suffer from the various ways you can take for xml data processing in python. Here are my two major problems: Problem number one: A application written...
852
by: Mark Tarver | last post by:
How do you compare Python to Lisp? What specific advantages do you think that one has over the other? Note I'm not a Python person and I have no axes to grind here. This is just a question for...
7
by: Rajat | last post by:
can u plz send me a gud program in c++ 4 my skool project
10
by: Mladen Gogala | last post by:
I am a Python newbie who decided to see what that Python fuss is all about. Quite frankly, I am a bit perplexed. After having had few months of experience with Perl (started in 1994 with Perl v4,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.