Coder Social home page Coder Social logo

hubtou / conjuguer Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 126 KB

Conjugaison des verbes Français

License: BSD 3-Clause "New" or "Revised" License

Makefile 6.11% Python 93.89%
python learning-python unix learning-unix utility tool command-line-tool verb-conjugation verb verbs

conjuguer's Introduction

Installation

pip install pnu-conjuguer

CONJUGUER(1)

NAME

conjuguer — conjugaison des verbes Francais

SYNOPSIS

conjuguer [-c|--columns NUM] [-d|--dictionary PATH] [-n|--nocolor] [-A|--ABU] [-D|--DELA] [--debug] [--help|-?] [--locale LANG] [--version] [--] verb [...]

DESCRIPTION

The conjuguer utility displays a French conjugation table for the verbs supplied on the command line.

It will display the verb modes and tenses in color, unless you use the -n|--nocolor option.

The display will be made in 4 columns, Bescherelle style (a famous verbs dictionary), or in 1 or 2 columns if you use the -c|--columns option.

The data is obtained from a DELA or ABU type inflected French dictionary, rather than generated. The dictionary will be selected from the DICTPATH environment variable, or obtained from the -d|--dictionary option if used. The dictionary type is automatically detected.

You can convert entries from a dictionary format to the other, using the -A|--ABU and -D|--DELA options.

OPTIONS

Options Use
-c|--columns NUM Choose number of columns to display between 1, 2 or 4
-d|--dictionary PATH Select a specific dictionary
-n|--nocolor Disable color output
-A|--ABU Enable ABU format output
-D|--DELA Enable DELA format output
--debug Enable debug mode
--help|-? Print usage and a short help message and exit
--locale LANG Override environment to select another language
--version Print version and exit
-- Options processing terminator

ENVIRONMENT

The CONJUGUER_DEBUG environment variable can be set to any value to enable debug mode.

The DICTPATH environment variable is searched for one of the default dictionary files.

Alternatively, the CONJUGUER_DICT environment variable can also be set to the path of the dictionary file you want to use.

FILES

The dict-fr-AU-DELA file is the preferred dictionary used, if found in the DICTPATH.

Else, the dict-fr-DELA file or the dict-fr-ABU-mots_communs file (which contains half of the verbs in the DELA) will be used instead.

EXIT STATUS

The conjuguer utility exits 0 on success, and >0 if an error occurs.

SEE ALSO

typo(1), spell(1), ispell(1), aspell(1), hunspell(1), dict(7)

STANDARDS

The conjuguer utility is not a standard UNIX command.

This utility tries to follow the PEP 8 style guide for Python code.

HISTORY

This utility was made for the PNU project, both as a way to test inflected dictionaries, and to validate the data inside.

LICENSE

It is available under the 3-clause BSD license.

AUTHORS

Hubert Tournier

The source code also includes a snippet of code from Martijn Pieters, for stripping ANSI sequences in strings.

CAVEATS

The results are only as good (or bad) as what's included in the dictionary used. The data in both the ABU and DELA dictionaries obviously contains errors, often on the same verbs... I do not know yet the proportion of correct conjugations.

When converting from a dictionary format to the other, you'll lose semantics information (such a +z1, +AE, etc.).

BUGS

There are probably lots of peculiarities that would need specific processing, the verbs conjugated with the "être" auxiliary when used with a pronoun for example.

Though the software is probably mostly correct, I will consider it as Beta quality till I get a better idea of the quality of the source data and offer a way to improve it...

conjuguer's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

ali-issa

conjuguer's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.