PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
stem_UTF_8_tamil.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct SN_envtamil_UTF_8_create_env (void)
 
void tamil_UTF_8_close_env (struct SN_env *z)
 
int tamil_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ tamil_UTF_8_close_env()

void tamil_UTF_8_close_env ( struct SN_env z)

Definition at line 1415 of file stem_UTF_8_tamil.c.

1415{ SN_close_env(z, 0); }
void SN_close_env(struct SN_env *z, int S_size)
Definition: api.c:34

References SN_close_env().

◆ tamil_UTF_8_create_env()

struct SN_env * tamil_UTF_8_create_env ( void  )

Definition at line 1413 of file stem_UTF_8_tamil.c.

1413{ return SN_create_env(0, 2); }
struct SN_env * SN_create_env(int S_size, int I_size)
Definition: api.c:3

References SN_create_env().

◆ tamil_UTF_8_stem()

int tamil_UTF_8_stem ( struct SN_env z)

Definition at line 1345 of file stem_UTF_8_tamil.c.

1345 {
1346 z->I[0] = 0;
1347 { int c1 = z->c;
1348 { int ret = r_fix_ending(z);
1349 if (ret < 0) return ret;
1350 }
1351 z->c = c1;
1352 }
1353 { int ret = r_has_min_length(z);
1354 if (ret <= 0) return ret;
1355 }
1356 { int c2 = z->c;
1357 { int ret = r_remove_question_prefixes(z);
1358 if (ret < 0) return ret;
1359 }
1360 z->c = c2;
1361 }
1362 { int c3 = z->c;
1363 { int ret = r_remove_pronoun_prefixes(z);
1364 if (ret < 0) return ret;
1365 }
1366 z->c = c3;
1367 }
1368 { int c4 = z->c;
1369 { int ret = r_remove_question_suffixes(z);
1370 if (ret < 0) return ret;
1371 }
1372 z->c = c4;
1373 }
1374 { int c5 = z->c;
1375 { int ret = r_remove_um(z);
1376 if (ret < 0) return ret;
1377 }
1378 z->c = c5;
1379 }
1380 { int c6 = z->c;
1381 { int ret = r_remove_common_word_endings(z);
1382 if (ret < 0) return ret;
1383 }
1384 z->c = c6;
1385 }
1386 { int c7 = z->c;
1387 { int ret = r_remove_vetrumai_urupukal(z);
1388 if (ret < 0) return ret;
1389 }
1390 z->c = c7;
1391 }
1392 { int c8 = z->c;
1393 { int ret = r_remove_plural_suffix(z);
1394 if (ret < 0) return ret;
1395 }
1396 z->c = c8;
1397 }
1398 { int c9 = z->c;
1399 { int ret = r_remove_command_suffixes(z);
1400 if (ret < 0) return ret;
1401 }
1402 z->c = c9;
1403 }
1404 { int c10 = z->c;
1405 { int ret = r_remove_tense_suffixes(z);
1406 if (ret < 0) return ret;
1407 }
1408 z->c = c10;
1409 }
1410 return 1;
1411}
static int r_remove_common_word_endings(struct SN_env *z)
static int r_has_min_length(struct SN_env *z)
static int r_remove_pronoun_prefixes(struct SN_env *z)
static int r_fix_ending(struct SN_env *z)
static int r_remove_question_prefixes(struct SN_env *z)
static int r_remove_command_suffixes(struct SN_env *z)
static int r_remove_plural_suffix(struct SN_env *z)
static int r_remove_question_suffixes(struct SN_env *z)
static int r_remove_um(struct SN_env *z)
static int r_remove_vetrumai_urupukal(struct SN_env *z)
static int r_remove_tense_suffixes(struct SN_env *z)
int * I
Definition: api.h:18
int c
Definition: api.h:16

References SN_env::c, SN_env::I, r_fix_ending(), r_has_min_length(), r_remove_command_suffixes(), r_remove_common_word_endings(), r_remove_plural_suffix(), r_remove_pronoun_prefixes(), r_remove_question_prefixes(), r_remove_question_suffixes(), r_remove_tense_suffixes(), r_remove_um(), and r_remove_vetrumai_urupukal().