Skip to main content

Bahasa Indonesia Language Tool

Project description

https://travis-ci.org/hanmajid/bhasa.svg?branch=master

Installation

You can install bhasa with pip:

$ pip install bhasa

You can test the installation in Python console:

>>> import bhasa
>>> print bhasa.smile()

Features

  1. Spelling

We are currently using Peter Norvig’s article as a reference. But since it’s using English, we’ll update it to Bahasa soon. Usage:

>>> from bhasa.spell import correction
>>> correction('typwriter')
'typewriter'

Development

  1. Clone this repository:

    $ git clone https://github.com/hanmajid/bhasa.git bhasa
    
  2. Go into the folder:

    $ cd bhasa
    
  3. We recommend using Miniconda for package manager. Download and install Miniconda on your computer, and create a new environment:

    $ conda env create -f environment.yml
    
  4. Activate the environment:

    # Linux/Mac OS
    $ source activate bhasa_env
    
    # Windows
    $ activate bhasa_env
    

Testing

We use coverage for testing. You can run test with:

$ coverage run bhasa/tests/tests.py

Project details


Release history Release notifications

This version
History Node

0.1.2

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
bhasa-0.1.2.zip (6.6 kB) Copy SHA256 hash SHA256 Source None Apr 22, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page