An interactive implementation of several different linguistic shift models.
No followers yet
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
I added new CSS to the website to make it look nice + water.css, and auto-render the graph on startup and when the model is changed. I've also increased the number of steps per day to 100 instead of 2 when solving the differential equation, yielding more accurate results.
Added custom inputs and model selection for interactivity. Next I'll add spatial models and better CSS styling for the website.
I spun up deployments by using trunk
instead of wasm-pack
, and the deployment is now visible at https://a.rvind.dev/langshift (I also figured out how to deploy to a specific path on a custom domain for github pages, e.g. https://example.com/path)
I changed from the crate differential-equations to the diffeq crate because the former didn't actually support WASM. After switching I was able to compile to wasm32 and create a small plotly demo website, currently located in the index.html
file of the repository. I'll deploy it with GitHub pages and ship before adding new features.
I added the Abrams and Strogatz model of linguistic shift, and added WASM compilation for the rust code. I switched away from the diffsol
library for solving the differential equations so I could compile to WASM, and instead used the differential-equations
crate for ODE solving, which does have WASM support.
I implemented the Diaz and Switkes paper and ran some tests with the equilibrium's in the paper.
The paper is @ https://doi.org/10.1016/j.heliyon.2021.e06975