Metadata-Version: 2.1
Name: langdetect-py
Version: 1.1.0
Summary: Language detection library ported from Google's language-detection.
Home-page: https://github.com/DoodleBears/langdetect
Author: DoodleBear
Author-email: yangmufeng233@gmail.com
License: Copyright 2014-2015 Michal "Mimino" Danilak
        
           Licensed under the Apache License, Version 2.0 (the "License");
           you may not use this file except in compliance with the License.
           You may obtain a copy of the License at
        
               http://www.apache.org/licenses/LICENSE-2.0
        
           Unless required by applicable law or agreed to in writing, software
           distributed under the License is distributed on an "AS IS" BASIS,
           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
           See the License for the specific language governing permissions and
           limitations under the License.
        
Keywords: language detection library
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
License-File: LICENSE
License-File: NOTICE
Requires-Dist: six

langdetect
==========

Port of [language-detection](https://code.google.com/p/language-detection/) (version from 03/03/2014) library to Python.


Installation
============

    $ pip install langdetect


Supported Python versions 2.6, 2.7, 3.x.


Basic usage
===========

To detect the language of the text:

    >>> from langdetect import detect
    >>> detect("War doesn't show who's right, just who's left.")
    'en'
    >>> detect("Ein, zwei, drei, vier")
    'de'

To find out the probabilities for the top languages:

    >>> from langdetect import detect_langs
    >>> detect_langs("Otec matka syn.")
    [sk:0.572770823327, pl:0.292872522702, cs:0.134356653968]


More information
================

This library is a direct port of [language-detection](https://code.google.com/p/language-detection/) from Java to Python. All the classes and methods (even unit tests) are unchanged, so for more information see the project's website or wiki.


