Code Monkey home page Code Monkey logo

wdiff's Introduction

wdiff

PyPI - Version PyPI - Python Version

GitHub Tests Codecov Read the Docs Black pre-commit

Analyze how difficult a Spanish word will be to spell

Features

wdiff helps analyze how difficult it is to spell Spanish words. The objetive with wdiff is to improve research on spelling skill and may also be useful for games that require user's to spell Spanish words.

wdiff was design to be easy to use and as flexible as possible to facilitate conducting research on spelling skills.

wdiff determines the difficulty of words based on the following dimensions:

  1. Word length - how many letters it has
  2. Number of silent letters - letters that don't have a phonemic representation (e.g., h)
  3. Number of graphemes that share their phoneme with other graphemes (e.g., s and z)

Getting Started

Installation

python -m pip install wdiff

Usage

The most basic usage requires you to pass an iterable of words (e.g., list), run all possible analyses, and save the results to a file named results.csv.

from wdiff.analyzer import Analyzer

words = ['guitarra', 'jinete', 'serpiente']
analyzer = Analyzer(words) # create analyzer
analyzer.run_all_analyses()
print(analyzer.results) # see results
analyzer.save_results()

You can further customize which analyses to run, extract the results as a pandas.DataFrame, and choose the name of the results file.

Check the documentation for more details. Better documentation is coming very soon!

Contributing to this project

All contributions are welcome!

Will find a detailed description of all the ways you can contribute to wdiff in the contributing guide.

This is a beginner-friendly project so don't hesitate to ask any questions or get in touch with the project's maintainers.

Please review the project's code of conduct before making any contributions.

Author

This project was developed by Mario E. Bermonti Pérez as part of his academic research. Feel free to contact me at [email protected] or [email protected].

Credits

This package was created with Cookiecutter and the mario-bermonti/cookiecutter-modern-pypackage project template.

wdiff's People

Contributors

mario-bermonti avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

josealicea5

wdiff's Issues

io method

Change io method so no external library needs to be installed.

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.