LangShift

LangShift

7 devlogs
10h 19m
•  Ship certified
Created by Arvind

An interactive implementation of several different linguistic shift models.

Timeline

Split up my HTML/CSS/JS files, and got trunk to work with static css files.

Update attachment

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.

Update attachment

Added custom inputs and model selection for interactivity. Next I'll add spatial models and better CSS styling for the website.

Update attachment

Ship 1

0 payouts of shell 0 shells

Arvind

25 days ago

Arvind Covers 4 devlogs and 8h 54m

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)

Update attachment

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.

Update attachment

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.

Update attachment

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

Update attachment