Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Re: Re: Non-English posts on Perlmonks

by Anonymous Monk
on Jul 13, 2003 at 21:45 UTC ( [id://273832]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Non-English posts on Perlmonks
in thread Non-English posts on Perlmonks

rot13 is blatantly obvious

Okay, rot14 then ;-P

Really though, languages follow many simple patterns. What you could do would be to take a couple hundred posts from Perlmonks (or anywhere else) and analyze them for average word length and order. So taking your post I could use the notation 'A' for an alphabetical character and 'P' for punctuation (you could obviously get more specific here) and you get:

A AAAPA AAAA AAAAA AAAP AAA AA AA PAAA AAAAAA A AAAAPP AAANN AA AAAAAA +AAA AAAAAAP ...

You then average out the structure of the words and create general rules like 'a one-letter word is seldom followed by another one-letter word' and 'this type of punctuation occurs every X letters.' You use these rules to create an acceptable level of variation and then use some random generator to generate numbers in this variation. You then account for certain letters occuring more often than others and assign them accordingly. Dead simple.

Again though, it's hardly worth worrying about, but it is a neat (SIMPLE) academic exercise.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://273832]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-25 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found