This zone is sleeping right now! ZzzZZzzz

Better not distrub it! ~You go to the petrol station and buy a slushy instead, everything is cool!~

This area will open again in 000.beats!

(Learn about Swatch Time)

Some other zones are awake :^]


Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
a Summer day - @645.49 (what is this?)
Activity rating: Two Stars Posts & Arts: 12/1k.beats Random | Recent Posts | Guild Recents
News: :wizard: You can make anything on the web! :wizard: Guild Events: Happy Pride Month Fibre Artists!

+  MelonLand Forum
|-+  Projects & Art
| |-+  ☆ ∙ Web Projects
| | |-+  Anagram generator


« previous next »
Pages: [1] Print Embed
Author Topic: Anagram generator  (Read 2129 times)
bearbearbear
Newbie
*
View Profile

⛺︎ My Room

Artifacts:
First 1000 Members!Joined 2023!
« on: a Summer day » Embed

I made an anagram generator. Well, I started making one, it's still pretty rough and I'm not sure if I'll ever polish it. Some notes:

* It should generate all anagrams for the given input exactly once. It should generate all permutations of multi-word anagrams.
* It is written in TypeScript so it runs locally on the user's machine. That's why I didn't add any restrictions on input length. However...
* It makes heavy use of sub-result caching in hopes of being fast. Unfortunately this also means that it will crash on long inputs eventually as memory runs out.
* It takes about 600 ms to generate all options for my first and last name (12 letters). If I add my middle name (5 letters), it crashes due to the above.
* It is still very difficult to find fun anagrams with it. Spying on some other generators online, I found that it would be smart to first generate anagrams with the least number of words as those are usually more interesting than ones with many small words.
* It might be good to use web workers to keep the UI responsive while generating the results. I might try that at some point as I've never used them before.

I joined this forum to publish small unpolished projects like this, hoping that the first question won't be "what's the use of this?". I hope someone finds this one even a tiny bit entertaining!
Logged
Memory
Guest

« Reply #1 on: a Summer day » Embed

Hah, this is far from nonsense. I guess I'll consult this word generator when I'm out of imagination for new names.

Although I'd prefer if your server would do the scripting in the background instead of having JavaScript running in the browser. But it's certainly working fast in new browsers.
Logged
deuil
Casual Poster
*
View Profile


⛺︎ My Room
iMood: deuil

Artifacts:
First 1000 Members!Joined 2023!
« Reply #2 on: a Summer day » Embed

i love that ! i can definitely see myself using those anagram results for art projects. i wish i could give feedback on the coding part but i'm very much clueless about that.  :drat: this is basically wizardry to me. but i do like this anagram generator way more than any fancy UI anagram generators out there. the no-nonsense interface and hundreds of possible results are pretty inspiring. thank you for sharing it !
Logged


Melooon
Hero Member ⚓︎
*****
View Profile WWWArt


So many stars!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
I got robbed by Dan Q on Melonland!Flinstone VitaminAlways working hard!Known Apple shillcoolest melon on the web!Emergency feel-good tea
« Reply #3 on: a Summer night » Embed

ike pi eli  :smile:  lip i eek i  :omg:  ilk pee i i :defrag:

Now figure out what I originally wrote  :ozwomp:
Logged


everything lost will be recovered, when you drift into the arms of the undiscovered

Artifact Swap: MelonPaintUnpleasantWildflowers!seahorseySafe from the Rain!bitsy catSquidwardRed TulipMellohiHelp, my tail is stuck!cyberziI met Dan Q on Melonland!?Stinky CheeseFlowersRaw beefEvil fucking snailPlank
bby
Sr. Member ⚓︎
****
View Profile WWW


take my memories of her with u
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: bumblebear
iMood: dahliahawthorne
Matrix: Chat!
XMPP: Chat!
PicMix: tuxedosam
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
Pansexual NeurodivergentSurferI met Dan Q on Melonland!Blast Off!Victory FreakStriped Fish
« Reply #4 on: a Summer night » Embed

i love this, thanks for sharing!
Logged

makeup and stickers and ponies and myspace.com melonland.net! :ozwomp:

:sleep::wizard::happy:

:4u: digital pet hoard :mail: wanna be pen pals?

Artifact Swap: You Got Mail :3gloomy bearbby ur a haunted house
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi
MelonLand @000

Minecraft: Online
Join: craft.melonking.net