Add script for generating a historic version of the Dutch LIWC

Added the script for generating a historic version of the Dutch LIWC.
This script was not yet committed in the old liwc project. The same
holds for the files historic_Dutch_LIWC.dic and liwc_output.json.
Move liwc files to liwc dir

All files from the old liwc project were moved to the liwc dir. This
concludes merging the old liwc project with the new embodied emotions
scripts project.
Rearrange project files

The directory structure with separate directories for scripts
concerning liwc and scripts concerning kaf did not work. All scripts
that can be called by the user are now in the top level directory.
Additionaly, a module name emotools was made.
Add script for adding LIWC entities to FoLiA XML file

Added a script that checks whether a word in the FoLiA file also occurs
in the historic LIWC dictionary. If it does, and the word has certain
categories (at this time the script checks for posemo and negemo
words), an entity is added to the FoLiA XML file.
What needs to be added is: a function that generates an appropriate id
for entities, an entity-annotation tag, and a way to customize at run
time what entities will be added.
Add entity-annotation tag

Added entity-annotation tag for LIWC entities.
Remove entity id

Other entities do not have an id. It is not clear why they don't have
an id. Pending more information, the id for LIWC entities has been
removed.
Add t attribute to entities

The wref tag in FoLiA entities refers to the words that make up an
entity. The wref tag has an (optional) t attribute, that repeats the
word the tag refers to. Because with a t attribute it is easier to see
what word(s) an entity refers to, a t attribute was added for LIWC
entities.
Clean up add LIWC entities script

The add_liwc_entities script was cleaned up. Running it on
feit007patr01_01.xml produces a
UnicodeWarning: Unicode equal comparison failed to convert both
arguments to Unicode - interpreting them as being unequal
  if w in liwc_dict.keys(): (line 55)
This must be solved next.
Update generate historic liwc script to only use unicode strings

Updated generate_historic_liwc.py to only use unicode strings, in order
to prevent encoding problems. New versions of the historic Dutch LIWC
and the json version of the extended dictionary have also been added.
Add module with string helper functions

Added a module for string helper functions. These functions are used to
troubleshoot string encoding problems. The module currently contains a
single function tell_me_about(string) that returns a tuple containing
the type of the string and the string itself.
Fix encoding error when loading LIWC dictionary

Instead of loading the historic LIWC, the default Dutch LIWC was
loaded. Because the default Dutch LIWC is encoded in latin-1, and the
historic LIWC is encoded in utf-8, this raised an encoding error. The
error was solved by loading the right dictionary.
Update write xml output to file

A function was added for writing the xml output to file. The function
uses the codecs.open function and writes to the location of the input
file, instead of to the location of the script. A string is appended to
the file name of the input FoLiA file, so the input file is not
overwritten.
Fix importing bs4_helpers

Importing bs4_helpers did not work, because bs4_helpers.py was moved to
the directory emotools. inspect_folia.py now imports bs4_helpers from
the emotools module.
Add all LIWC entities to FoLiA

Previously, entities were added to a new FoLiA file for LIWC
categories 'negemo' and 'posemo' only. The script now adds all LIWC
categories to the FoLiA file. This makes it easier to visualize other
LIWC categories that might also be interesting to explore in the
context of the Embodied Emotions project.
Add script to generate data files for visualization

Added a script that generates a comma separated file containing the
frequencies of certain LIWC categories per sentence for a certain
speaker. The file is printed to stdout.
What needs to be fixed:
- Character names need to be cleaned up in a postprocessing step
- A file should be generated for each character in the play
- The user should be able to specify which LIWC categories need to be
  added to the file (or perhaps all categories should be extracted)
Fix import of bs4_helpers

The folia2kaf script did not yet import the bs4 helper functions from
the emotools module. This is now fixed.
Fix including speaker names in kaf files

Previously, speaker names were manually added to the kaf-files, because
they were not part of the text. Because some speaker names contain
stage directions, all speaker names are now added as stage direction
before the speaker turn. This has the added benefit that speaker names
are now part of the text and adding them to kaf is trivial. Before,
speaker names were 'manually' added to kaf. This is no longer required.
Therefore, the folia2kaf script was updated to include speaker names in
the kaf file in the proper way.
Add functionality for smoothing of raw liwc frequencies

The raw frequencies of LIWC categories fluctuate a lot. In order to
improve readability of the results, the raw frequencies are smoothed
using a moving average.
Add leading and trailing zeros to smoothed results

Smoothing using a moving average leads to losing a few values at the
beginning and at the end of the array containing the results. To make
the smoothed results easier to print (to file), a function that append
the right amount of zeros to to either side of the array was added.
Add measure for emotion valence and intensity

Based on the raw frequencies a measure for emotion valence and
intensity was added. The measure is calculated per sentence by (#posemo
- #negemo) / (#posemo + #negemo).