summaryrefslogtreecommitdiff
path: root/engparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'engparser.c')
-rw-r--r--engparser.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/engparser.c b/engparser.c
index 2c3c77f..e5b17e6 100644
--- a/engparser.c
+++ b/engparser.c
@@ -19,6 +19,7 @@
#include <stdio.h>
#include <ctype.h>
#include <string.h>
+#include "interface.h"
#include "engparser.h"
#include "word.h"
@@ -29,6 +30,8 @@ int excl_w_capital = 1;
Parseoptions hyphen = {'-', 0, 1, 0, 1, 0};
Parseoptions quote = {'\'', 0, 1, 1, 0, 0};
+
+/* It deletes first and last symbol in the word*/
static void del_first_n_last(char *word);
/*
@@ -48,6 +51,7 @@ int parseengphrase(char *phrase)
int sentence_start = 1;
int i, k;
+ add_sentence(phrase);
for (i = 0, k = 0; phrase[k] != '\0'; k++) {
if ((isalpha(phrase[k]))||(phrase[k] == '\'')||(phrase[k] == '-'))
{
@@ -110,9 +114,6 @@ int parse_eng_word(char *word, Parseoptions opt)
return WORD_INCLUDED;
}
-/*
- * It deletes first and last symbol in the word
- */
static void del_first_n_last(char *word)
{
int i, k;