valDict/README.md
2025-06-28 16:08:37 +00:00

24 lines
1.5 KiB
Markdown

# valDict
A very simple computer readable online dictionary based entirely off of data from **[Wiktionary](https://en.wiktionary.org/wiki/Wiktionary:Main_Page)** that uses data made with **[Wiktextract](https://github.com/tatuylonen/wiktextract)**.
valDict can be served using the built in react server that comes with this repo, or your choice of web server.
## Building
Firstly, you need the "large_dir" option enabled in your filesystem and "dir_index" will also help speed things up, they can be enabled with
```bash
tune2fs -O large_dir /dev/DEVICE
tune2fs -O dir_index /dev/DEVICE
#DEVICE can be found with lsblk
```
IN ADDITION, you need like... ALOT of Inodes like 2-3 million, i highly recommend making a DEDICATED ext4 partition JUST FOR this dictionary that has an outrageous inode count
personally i recommend a 40-45GB that is 45,000,000,000 bytes / 10,000,000 goal inodes = 4,500 bytes per inode (waow that is crazy)
this is a decently efficent way to patition the format while still leaving a very decent amount of space left for extra files, or whatever future expansion may be required making a filesystem like this would probably require first making an ext4 partition with fdisk, then using mkfs.ext4 -i 3200 to achieve the 3200 bytes per inode ratio...
building valDict is very easy, just clone the repo and run: `./downloadDict.sh` then run `./cleanbuild.sh` (beware, building takes a LONGGGG time... (has to write 20gb~ worth of files))
RUN AT OWN RISK BE CAREFUL CAREFUL CAREFUL