#!/bin/bash

echo "Hej p dej!" 
echo "This is a very simple user interface for checking the morphology of certain Swedish nouns"
echo "Write a word form of one of the words:"
echo "flicka, pojke, ros, spik, hus, sko, bild, byte, bil, eller bt"
echo "press 'Ctrl + c' to quit"
while [ $X!="q" ]
do
read -p "word to check: " inp X 
lexcompre -l syms/morph.lab -s $inp | fsmcompose - sum7.fst | lexfsmstrings -l syms/morph.lab
done
