hctilg/finglish

This library provides a Finglish-to-Persian convertor.

v1.1 2024-05-18 19:56 UTC

This package is auto-updated.

Last update: 2024-11-18 21:00:50 UTC


README

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") );  // "آسمان آبی"