Friday, October 24, 2025

N-Grams (Old, Compatible with IM3)

Welcome to Infinite Monkeys' N-Gram algorithm in JavaScript. You can paste any text into the upper box, then click the EAT button. The text will be loaded into memory and statistically organized. You can then generate text from the input.

Links will be collected between sequential words and then weighted according to frequency. To determine which word will be generated, im3's N-Gram algorithm will 'roll' the weights against each other. So a weight of 8 will randomly generate any number between 1 and 8, while a weight of 4 will randomly generate any number between 1 and 4. The winner is then selected for inclusion in the text. Please enjoy and feel free to post your output in the comments. j(Infinite Monkeys) v.5





JYNX1the0clock1

No comments:

Post a Comment