<commit_before>\chapter{Mountaineering phrasebook in GF}
\lettrine[lines=4, loversize=-0.1, lraise=0.1]{L}{orem ipsum dolor} sit amet, consectetur adipiscing elit. Donec viverra gravida adipiscing. Morbi vitae dui eu leo dapibus venenatis quis laoreet augue. Proin sem nunc, lobortis sed gravida id, iaculis id justo. Sed convallis, mauris vel mattis posuere, tortor quam molestie sem, vel feugiat risus dolor sit amet purus. Nulla facilisi. Duis ac velit non tortor malesuada pellentesque vitae vitae erat. Aliquam dapibus porta lorem lacinia vestibulum. Nulla convallis venenatis euismod. Suspendisse adipiscing lacus id nisi hendrerit dapibus. Sed quam diam, pretium vel accumsan vel, pulvinar et odio. Nulla facilisis ullamcorper metus non suscipit. Aliquam nec augue odio. In hac habitasse platea dictumst. Nulla facilisi. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Maecenas consequat mattis metus, in imperdiet purus suscipit eu. Mauris velit lorem, pharetra nec vehicula cursus, vulputate sit amet dui. Nam sed eros magna, quis molestie urna.

\section{Phrasebook}
\subsection{Sub-header}

\section{Mountaineering}
\subsection{Words}
\subsection{Phrases}
\subsection{Professions}<commit_msg>On Phrasebook and Mountaineering.<commit_after>\chapter{Mountaineering phrasebook in GF}
\lettrine[lines=4, loversize=-0.1, lraise=0.1]{I}{n mountaineering}, like in all special areas of interest, there is a certain jargon. It includes some words and phrases which are uncommon or even has a different meaning when used without this context. However, a large amount of words and expressions are still common with plain language. (Otherwise it wouldn't be considered the same language any more.)

In GF there is already a tourist phrasebook grammar. This can be used as a basis for the Mountaineering grammar so that only the jargon has to be added.

\section{Phrasebook}
The phrasebook grammar in the GF distribution provides several forms of useful questions and phrases. Some examples include:
\begin{itemize}
\item Where is the airport?
\item Can you buy an apple?
\item I can swim.
\item This Italian pizza is good.
\end{itemize}

\section{Mountaineering}
The words and phrases present in mountaineering jargon varies from language to language. Some languages, like Norwegian, has a very rich vocabulary for this area. Others, like Swedish, mostly use loan words. English and German fall somewhere in between, with German being on the richer side of the spectrum while English borrows some from German but not as much as Swedish does from English.

\subsection{Words}
When deciding what words to include a few categories where identified, namely actions, exclamations, gear, holds, knots, places and people. Some of these could be placed in existing categories from the Phrasebook grammar, while other where given their own categories.

The words where categorised as follows:
\begin{description}
\item[VerbPhrase] Actions like like abseil, climb, fall or stem.
\item[Greeting] Exclamations like "belay on", "falling!" or "rock!".
\item[Kind] Gear like carabiner, harness or rope.
\item[HoldKind] Holds like bucket, pocket or sloper.
\item[KnotKind] Knots like bowline, fisherman's knot or munter hitch.
\item[PlaceKind] Places like belay station, glacier or summit.
\item[Profession] People like belayer, climber or physician.
\end{description}
VerbPhrase, Kind and PlaceKind are inherited from the Phrasebook grammar, while the other four are new.

Profession is probably the most interesting category as it is used in the replacement of certain phrases from the Phrasebook grammar, discussed below.

\subsection{Phrases}
The Phrasebook grammar provides most of the phrases needed to use the added words. Some phrases were added though:
\begin{description}
\item[ADoVerbPhraseDirection] Someone walks/climbs/etc to somewhere: "I walk to the hotel."
\item[AModVerbPhraseDirection] Someone can/can't do the above: "I can walk to the hotel."
\item[IsAProfession] Someone is a climber/physician/etc: "I am a climber."
\end{description}

\subsection{Professions}
In the Phrasebook grammar there is a group of Actions on the form "I am a student." However, these are not very flexible and does not allow the profession to be reused in other phrases were a person is needed. I.e. "The student walks to the hotel.".
This is somewhat limiting as being able to say "The leader climbs to the belay station." can be rather useful.

To address this, the old professions were excluded when inheriting from the Phrasebook grammar, and instead a new system to express both the old phrases and the new were designed.

First, a new category Profession as described above were added. Then functions to use professions as persons were created. Finally the function IsAProfession was added to replicate the "I am a student." type of phrases.

Abstract:
\begin{verbatim}
-- this teacher, that teacher
ThisProfession, ThatProfession : Profession -> Person;
-- these teachers,those teachers
TheseProfessions, ThoseProfessions : Profession -> Person;
-- the teacher, the teachers
TheProfession, TheProfessions : Profession -> Person;

IsAProfession : Person -> Profession -> Action;
\end{verbatim}


Concrete (common):
\begin{verbatim}
ThisProfession pro = {name = mkNP this_Quant pro ; isPron = False ;
                                               poss = this_Quant};
ThatProfession pro = {name = mkNP that_Quant pro ; isPron = False ;
                                               poss = that_Quant};
TheseProfessions pro = {name = mkNP this_Quant plNum pro ; isPron = False ;
                                               poss = this_Quant};
ThoseProfessions pro = {name = mkNP that_Quant plNum pro ; isPron = False ;
                                               poss = that_Quant};
TheProfession pro = {name = mkNP the_Quant pro ; isPron = False ;
                                               poss = the_Quant};
TheProfessions pro = {name = mkNP the_Quant plNum pro ; isPron = False ;
                                               poss = the_Quant};
\end{verbatim}

Concrete (english):
\begin{verbatim}
IsAProfession p pro = mkProfession pro p;
\end{verbatim}

This can be compared with the old functions from Phrasebook.

Abstract:
\begin{verbatim}
ADoctor : Person -> Action ;
AProfessor : Person -> Action ;
ALawyer : Person -> Action ;
AEngineer : Person -> Action ;
ATeacher : Person -> Action ;
ACook : Person -> Action ;
AStudent : Person -> Action ;
ABusinessman : Person -> Action ;
\end{verbatim}

Concrete:
\begin{verbatim}
ADoctor = mkProfession (mkN "doctor") ;
AProfessor = mkProfession (mkN "professor") ;
ALawyer = mkProfession (mkN "lawyer") ;
AEngineer =  mkProfession (mkN "engineer") ;
ATeacher = mkProfession (mkN "teacher") ;
ACook = mkProfession (mkN "cook") ;
AStudent = mkProfession (mkN "student") ;
ABusinessman = mkProfession (mkN "businessman" "businessmen") ;
\end{verbatim}
{'fraction_non_alphanumeric': 0.0689506261695696, 'fraction_numerical': 0.0014394702749388226, 'mean_word_length': 3.9699570815450644, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 13, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1987911', 'n_tokens_mistral': 2031, 'n_tokens_neox': 1949, 'n_words': 868}