Here’s my rust implementation about calculating the last checksum word by providing the first 11 or 23 seed phrase words. It was based on a fun experiment I did a while ago by throwing dice to generate seed phrases. The nice thing about rust is I can easily bring it to mobile apps.
https://github.com/aki-mizu/lastword/blob/main/lastword-ffi/src/lastword.rs