Hi Ole,

On 27/10/11 21:25, Ole Wolf wrote:
> 
>    Ouch, I should have throught of that possible exploit. I agree, it's
> not suitable for release as is; in fact, I'll remove the download from the
> homepage.

wow, that was quick. :-) I agree that it's probably better to remove the
download until you can fix this issue.

>    What is "polygen"?

  polygen [1] is a generator of random sentences from grammar
definitions, which already provides all the randomization you need.

  I've attached a (very simple) grammar definition based on your
original message collection.  This should of course be refined somehow
to generate more dynamic messages based on more sophisticated grammar
rules.  Use "polygen cheermeup.grm" to select a random message.

Looking forward to the next version. :-)
Philipp

[1] http://packages.debian.org/sid/polygen

(* polygen'ized by Philipp A. Hartmann <p...@sorgh.de> *)

I ::=   "title:    cheermeup - affirmative messages\n"
      ^ "author:   Ole Wolf &lt;w...@blazingangles.com&gt;\n"
      ^ "language: english\n"
      ^ "status:   refinable\n"
      ^ "topic:    misc\n"
      ^ "audience: anyone in need for some support\n"
      ^ "created:  27/10/2011"
;

(* should be refined to produce combinations from a ruleset more dynamically *)
S ::= Message ^ "." ;

Message ::= "Someone is thinking about you"
          | "Someone loves you"
          | "You are needed"
          | "You are unique"
          | "You can believe in yourself"
          | "You can trust yourself"
          | "You have a great life"
          | "You have everything you really need"
          | "You have potential"
          | "You look great"
          | "You're a good performer"
          | "You're a great person"
          | "You're a positive person"
          | "You're a strong person"
          | "You're good enough"
          | "You're resourceful"
          | "You're wonderful"
          | "You've made people happy"
;

Reply via email to