Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by DamnInteresting

2 days ago

One thing you can do is store a word profile in your database, which is a string of all of the letters in the word in alphabetical order. So the word profile for 'apple' is 'aelpp'. Then you can just include all of the words that match the profiles of the real words. For example, 'quiet' and 'quite' both have the profile 'eiqtu'.

0 comments

DamnInteresting

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities