/* This is -*- C -*- */
/* vim: set sw=2: */
/* $Id$ */

/*
 * pos.h
 *
 * Copyright (C) 2003 The Free Software Foundation, Inc.
 *
 */

/*
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 * USA.
 */

#ifndef __POS_H__
#define __POS_H__

#include <glib.h>
#include <Python.h>

typedef enum {
  POS_UNKNOWN = 0,
  POS_NOUN,
  POS_PLURAL,
  POS_NOUN_PHRASE,
  POS_VERB_PRINCIPLE,
  POS_VERB_TRANSITIVE,
  POS_VERB_INTRANSITIVE,
  POS_ADJECTIVE,
  POS_ADVERB,
  POS_CONJUNCTION,
  POS_PREPOSITION,
  POS_INTERJECTION,
  POS_PRONOUN,
  POS_ARTICLE_DEFINITE,
  POS_ARTICLE_INDEFINITE,
  POS_NOMINATIVE,
  POS_LAST,
} PartOfSpeech;

typedef guint32 PartOfSpeechMask;
#define pos_get_mask(pos) (1 << (pos))

PartOfSpeech pos_from_char (char c);
char         pos_to_char   (PartOfSpeech pos);
const char  *pos_to_string (PartOfSpeech pos);

char        *pos_mask_to_string (PartOfSpeechMask pos_mask);

/* Python Extensions */

PyObject *py_pos_mask_to_string (PyObject *self, PyObject *args);


#endif /* __POS_H__ */

