Code Monkey home page Code Monkey logo

synonym-antonym-indonesia's Introduction

synonym-antonym-indonesia

A Package for Getting Synonym or Antonym of word from Indonesian Language

Source Data

I am using curl to get the dictionary data from http://www.sinonimkata.com

Installation

For installing this package, you can install using composer quickly with command

composer require "satria/synonym-antonym-indonesia":"dev-master"

Using the Package

Easy to use this package, you just include the autoload.php file to your .php file like this

<?php
require_once "vendor/autoload.php";

After that, you can use the package by following this code

<?php

use SynonymAntonym\Dictionary

$init = new Dictionary;
$results = $init->word('satria')->synonym();

Example Results

<?php

$init = new AntonymSynonym\Dictionary;

// success
$init->word('anggota')->synonym();

// fail
$init->word('mamam')->synonym();

Success Result

Array
(
    [status] => Array
        (
            [code] => 200
            [description] => OK
        )
    [title] => Sinonim
    [data] => Array
        (
            [0] => ahli
            [1] => anak buah
            [4] => bagian
            ...
        )
)

Error Result

Array
(
    [status] => Array
        (
            [code] => 400
            [description] => Data untuk kata mamam tidak ditemukan
        )
)

Available Methods

I am develop this package with some method that can use for your project application

Methods Description
$init->antonym() For getting the antonym data
$init->synonym() For getting the synonym data
$init->all() Get all data (antonym and synonym)

synonym-antonym-indonesia's People

Contributors

satriaajiputra avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

123job-group

synonym-antonym-indonesia's Issues

Gimana kalo SSL mas

saya coba diterapkan di situs yang ada SSL gx mau mas, coding sudah ditambahkan ke sumber api dengan menambahkan https tapi tidak bisa juga

composer error

composer require "satria/synonym-antonym-indonesia":"dev-master"

tidak bisa dengan muncul pesan
[UnexpectedValueException]
Could not parse version constraint :dev-master: Invalid version string ":dev-master"

apakah version nya sudah di hapus?

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.