FreeLing  4.0
Public Member Functions | Static Private Member Functions | Static Private Attributes
freeling::accents_es Class Reference

Derived accents_module for Spanish accentuation. More...

#include <accents_modules.h>

Inheritance diagram for freeling::accents_es:
Inheritance graph
[legend]
Collaboration diagram for freeling::accents_es:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 accents_es ()
 Constructor.
void fix_accentuation (std::set< std::wstring > &, const sufrule &) const
 Specific accentuation patterns for Spanish.

Static Private Member Functions

static std::wstring remove_accent_esp (const std::wstring &)
 remove spanish accents from given word
static std::wstring put_accent_esp (const std::wstring &)
 set spanish accents on last syllabe of given word

Static Private Attributes

static const regexp llana_acc
 regexps to check for useful spanish accentuation and syllabic patterns
static const regexp aguda_mal
static const regexp monosil
static const regexp last_vowel_put_acc
static const regexp last_vowel_not_acc
static const regexp any_vowel_acc
static const regexp diacritic
static const std::map
< std::wstring, std::wstring > 
with_acc
 maps to store equivalences between accentued and not accentued chars.
static const std::map
< std::wstring, std::wstring > 
without_acc

Detailed Description

Derived accents_module for Spanish accentuation.


Constructor & Destructor Documentation

Constructor.


Member Function Documentation

void freeling::accents_es::fix_accentuation ( std::set< std::wstring > &  ,
const sufrule  
) const [virtual]

Specific accentuation patterns for Spanish.

Implements freeling::accents_module.

static std::wstring freeling::accents_es::put_accent_esp ( const std::wstring &  ) [static, private]

set spanish accents on last syllabe of given word

static std::wstring freeling::accents_es::remove_accent_esp ( const std::wstring &  ) [static, private]

remove spanish accents from given word


Member Data Documentation

const regexp freeling::accents_es::aguda_mal [static, private]
const regexp freeling::accents_es::diacritic [static, private]
const regexp freeling::accents_es::llana_acc [static, private]

regexps to check for useful spanish accentuation and syllabic patterns

const regexp freeling::accents_es::monosil [static, private]
const std::map<std::wstring,std::wstring> freeling::accents_es::with_acc [static, private]

maps to store equivalences between accentued and not accentued chars.

const std::map<std::wstring,std::wstring> freeling::accents_es::without_acc [static, private]

The documentation for this class was generated from the following file: