Next: , Previous: Profiles, Up: The Programs


3.3 The Program malaga

The program malaga is the user interface for analysing word forms and sentences, displaying the results and finding bugs in a grammar. Start malaga with the name of a project file as argument:

     malaga english.pro

When malaga has been started, it loads the symbol file, the lexicon file and the morphology rule file, and the syntax rule file, if there is one. After loading, the prompt appears. Then malaga is ready to execute your commands:

     $ malaga english.pro
     This is malaga, version 6.13.
     Copyright (C) 1995 Bjoern Beutel.
     This program is part of Malaga, a system for Natural Language Analysis.
     You can distribute it under the terms of the GNU General Public License.
     malaga>

You can now enter any malaga command. If you are not sure about the name of a command, use the command help to get an overview of all malaga commands.

If you want to quit malaga, enter the command quit.

You can use the following command line options when you start malaga:

`-morphology' or `-m'
Starts malaga in morphology mode. That is, word forms are being read in from the standard input stream and analysed (one word form per line). The analysis result is being written to the standard output stream.
`-syntax' or `-s'
Starts malaga in syntax mode. That is, sentences are being read in from the standard input stream and analysed (one sentence per line). The analysis result is being written to the standard output stream.
`-quoted' or `-q'
When malaga has been started in syntax or morphology mode, and the option `-quoted' has been used, then each input line must be enclosed in double quotes which are removed prior to analysis. Within the double quotes there may be any combination of printable characters except the backslash `\' and the double quotes. These characters must be preceded by a `\' (escape character).
`-input' or `-i'
Starts malaga in argument analysis mode. That is, the argument following the `-input' is being analysed. Either the `-morphology' or the `-syntax' option must also be given. The analysis result is being pretty-printed to the standard output stream.