Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 532 Bytes

README.MD

File metadata and controls

22 lines (15 loc) · 532 Bytes

Finglish to Persian Converter

This library provides a Finglish-to-Persian convertor.

The return value is a list of possibilities, each with a confidence value in the [0.0, 1.0] range.

<?php

// checking the exists Library.
if (!file_exists("finglish.php")) {
  copy('https://raw.githubusercontent.com/hctilg/finglish/main/index.php', 'finglish.php');
}

// require Library.
require_once('finglish.php');

$model = new Finglish();

var_dump( $model("aseman abi") );  // "آسمان آبی"