File: metaphone.h

package info (click to toggle)
libtext-metaphone-perl 20160805-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid, stretch
  • size: 124 kB
  • ctags: 25
  • sloc: ansic: 269; perl: 91; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 386 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef __METAPHONE_H__
#define __METAPHONE_H__

#include <string.h>


/*  I add modifications to the traditional metaphone algorithm that you
    might find in books.  Define this if you want metaphone to behave
    traditionally */
#undef USE_TRADITIONAL_METAPHONE

/* Special encodings */
#define  SH 	'X'
#define  TH	'0'

char *metaphone (char *word, size_t max_phonemes );

#endif