Our great sponsors
-
english-words
:memo: A text file containing 479k English words for all your dictionary/word-based projects e.g: auto-completion / autosuggestion
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
In order to efficiently check if a word is in the dictionary, or if any word starts by a given prefix, I used a trie. I found Retrieval, a tiny Elixir library that did just what I needed.
Some official list of words used for Scrabble can be found online, but it seems they cannot be used freely. Other lists can be found here and there on abandoned web pages and repos, but it's never clear how good they are, and they often come in weird or annoying formats (e.g. XLS). In the end I used one from this GitHub repository but I'm still not convinced of its quality.
I also did not use "vanilla" LiveView, as I used the Surface library. This is a wrapper around LiveView that brings a whole new syntax to make the experience even more comfortable.
Related posts
- Is Elixir or Common Lisp the best language for building a bootstrapped B2B SaaS in 2024?
- Why Elixir Is the Best Language for Building a Bootstrapped, B2B SaaS in 2024
- Elixir for Cynical Curmudgeons
- htmlgui.nvim - Create html + css + lua apps with neovim as 'browser'. ( proof of concept )
- Phoenix JSON API Pagination