/* 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>

#define POS_TAG_WILDCARD 1
#define POS_TAG_BREAK    0
#define POS_TAG_INVALID -1

typedef gint16 PartOfSpeechTag;

PartOfSpeechTag pos_from_string (const char *str);
const char     *pos_to_string   (PartOfSpeechTag tag);

/* Python Extensions */

PyObject *py_pos_from_string (PyObject *self, PyObject *args);
PyObject *py_pos_to_string   (PyObject *self, PyObject *args);


#endif /* __POS_H__ */

