Skip to content
No description, website, or topics provided.
JavaScript HTML CSS Python
Branch: master
Clone or download
Pull request Compare This branch is 194 commits ahead of cpills:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AUTHORS
LICENSE
README.md
apertium-languages.tsv
apertiumPairs.json
apertiumPoints.json
codes.json
colorbrewer.js
colours.js
index.css
index.html
languages.json
ling073Pairs.json
linguistic_diversity.tsv
pairs.json.txt
pairviewer.js
places.json
trimpairs.py
world-110m.json

README.md

Ling073-Final

Welcome to the repo for my 3D Apertium Pairviewer! This project was made as a final for my Computation Linguistics class. The page is a simple way of visualizing the language pairs currently in Apertium (and also the language pairs worked on for the class).

To Run:

Simply clone the repository. To run locally, I use a PythonHTTPServer:

python -m SimpleHTTPServer 8888 &

Then, you can direct your browser to http://localhost:8888/ to view.

To add or modify point data, change the apertiumPairs.json file.

Files:

  • apertium-languages.tsv -- This file contains the coordinates of certain languages in Apertium.

  • apertiumPairs.json -- Contains all of the pair data and point data used

  • index.html -- HTML and CSS

  • languages.json -- Contains mappings from ISO language codes to full language names

  • ling073Pairs.json -- Contains the data for only the pairs created in-class

  • pairs.json.txt -- Contains the information used by the Apertium pairviewer

  • pairviewer.js -- Body of the page

  • places.json -- Example data that I used when starting out

  • trimpairs.py -- Short Python script that scrapes the pairs.json.txt and the apertium-languages.tsv file. Creates a trimmed set of the Apertium data (only the language pairs that have coordinates in the tsv file). Writes the information to the apertiumPairs.json file

  • world-110m.json -- Country data used for generating the globe

More:

To learn more about the project, you can look at the wiki page https://wikis.swarthmore.edu/ling073/User:Cpillsb1/Final_project

To learn more about Apertium, visit the Apertium website https://www.apertium.org/

You can’t perform that action at this time.