1 // Suffix type with corpus count for suffix/signature-based morphology discovery
2 // Copyright © 2009 The University of Chicago
6 // See the CMiniLexicon class in MiniLexicon.h for an overview of
7 // suffix/signature-based discovery of morphology.
8 // See also the very similar CPrefix class.
14 // XXX. we should avoid implicit instantiation of
15 // affix_list_view_item<CSuffix>, but swig can’t handle the
16 // appropriate declaration. (See Prefix.h for details.)
18 /// A list view item for suffixes.
20 Contains all the necessary variables needed when displaying a
21 prefix and its data in a list view.
23 typedef linguistica::affix_list_view_item
<CSuffix
> CSuffixListViewItem
;
25 /// A string represention of suffixes.
27 This class is a string representation of prefixes.
30 class CSuffix
: public CAffix
{
33 //--------------------------------------------------
34 // Constructors/Destructor
35 //--------------------------------------------------
37 CSuffix ( class CMiniLexicon
* mini
= NULL
);
38 CSuffix (const CStringSurrogate
&, class CMiniLexicon
* mini
= NULL
);
41 //--------------------------------------------------
42 // Public accessor methods
43 //--------------------------------------------------
45 void ListDisplay ( class Q3ListView
*, QMap
<QString
, QString
>* filter
= NULL
, bool b
= true, int char_count
= 27 );
46 void MergeMeWithMyStems ( class CMiniLexicon
* );
47 CParse
& Express ( CParse
&, bool bDisplayDeletees
= TRUE
); // march 2004 jg
48 void OutputSuffix ( class Q3TextStream
& );
49 QString
DisplaySuffix ( bool ExpressDeletees
= TRUE
);