Skip to content
This repository has been archived by the owner. It is now read-only.
A web app that makes reading Swedish more approachable and enjoyable.
Python HTML CSS JavaScript
Branch: master
Clone or download
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.
bin
chrome_extension
prescreener
screenshots
static
swedish_publications
templates
update_wordlists
LICENSE
Procfile
README.md
app.py
folkets_sv_en_public.xml
nltk.txt
requirements.txt
runtime.txt

README.md

foreword

A web app that makes reading Swedish more approachable and enjoyable.

How it works:

  1. You select an article for Foreword to prescreen.
  2. Foreword automatically sorts the words in the article into lists of known words and unknown words based on the master lists of known words and unknown words you configure.
  3. You'll be asked to choose the words you know from the words that could not be automatically sorted.
  4. Foreword parses the article and for keywords and a synopsis, defines the words you don't know, generates lists of your new known words and unknown words from the words you manually sorted, and presents your vocabulary words in a Memrise (bulk add) friendly format.

Required: flask, nltk, newspaper, pyphen

Recommended: Memrise account

Usage:

  • Replace words in known_master.txt with your own known words
  • Replace words in unknown_master.txt with your own unknown words
  • Run python app.py
  • (optional but recommended) Save session summary by copy/pasting results to relevant files in /update_wordlists
  • (optional but recommended) After every few runs, update known_master.txt and unknown_master.txt by running update_wordlists.py and reconcile_learned_words.py in /update_wordlists. Regularly updating files with update_wordlist.py will increases the automation of the sorting process.

To learn and to do:

  • Center contents on Sort Words page.
  • Don't render template for Sort Words page if all words in the article are automatically are automatically sorted.
  • Make it possible to define words based on possible compounds. (i.e. Fix hyphenator.)
  • Use loader to make wait for results more pleasant.
  • Automate saving session summary; save wordlists in database.

Homepage: screenshot of Foreword homepage

Example Sort Words Page: screenshot of Foreword Sort Words supernova results

Example results pages:

  • Foreword Section

screenshot of Foreword Foreword Section supernova results

  • Vocabulary Section

screenshot of Foreword Vocabulary Section supernova results

Website built with Bootstrap and uses an image and content from the prescreened article. The example results pages are from a Forskning & Framsteg article on supernovas.

You can’t perform that action at this time.