![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A Python API to access online madura dictionary
Install the package
pip3 install madura-api
from madura_api import translate
result_list=translate('Home')
print(result_list)
result_list is a list of lists like this,
[
['n.', 'ආල'],
['n.', 'ආලය'],
['n.', 'උත්පත්ති ස්ථානය'],
['n.', 'උන්හිටි තැන'],
['n.', 'ගෘහය'],
['n.', 'ගෙදර'],
['a.', 'ගෙදර පිළිබඳ වූ'],
['vi.', 'ගෙදරට ආපසු පැමිණෙනවා'],
['n.', 'ගේ'],
['n.', 'ගේදොර'],
['n.', 'ඝර'],
['n.', 'නිවස'],
['n.', 'නිවහන'],
['n.', 'නිවාසය'],
['n.', 'නිවෙස'],
['Ele.', 'නිවෙසනවා'],
['Ele.', 'නිවෙසීම'],
['n.', 'පදිංචිය'],
['Soc.', 'පවුල'],
['Soc.', 'ස්වදේශ'],
['n.', 'සියරට']
]
from madura_api import translate
result_list=translate('පොත')
print(result_list)
result_list is a list of lists like this,
[
['n.','bood'],
['n.', 'book'],
['n.', 'scroll']
]
from madura_api import translate
result_list=translate('meen')
print(result_list)
False
This is how you translate something if you wanna work with suggestions
import madura_api
result=madura_api.Translate('home')
print(result.list)
[
['n.', 'ආල'],
['n.', 'ආලය'],
['n.', 'උත්පත්ති ස්ථානය'],
['n.', 'උන්හිටි තැන'],
['n.', 'ගෘහය'],
['n.', 'ගෙදර'],
['a.', 'ගෙදර පිළිබඳ වූ'],
['vi.', 'ගෙදරට ආපසු පැමිණෙනවා'],
['n.', 'ගේ'],
['n.', 'ගේදොර'],
['n.', 'ඝර'],
['n.', 'නිවස'],
['n.', 'නිවහන'],
['n.', 'නිවාසය'],
['n.', 'නිවෙස'],
['Ele.', 'නිවෙසනවා'],
['Ele.', 'නිවෙසීම'],
['n.', 'පදිංචිය'],
['Soc.', 'පවුල'],
['Soc.', 'ස්වදේශ'],
['n.', 'සියරට']
]
If you try to translate something that can't be translated it'll give you a suggestion list like this,
import madura_api
result=madura_api.Translate('meen')
print(result.list)
[
'meed',
'meek',
'meekness',
'meerkat',
'meerschaum',
'meet',
'meeting',
'meeting adjourned',
'meeting annual general',
'meeting extraordinary'
]
But you will need to know if the output you get is a suggestion or not. This how you do that,
import madura_api
result=madura_api.Translate('meen')
print(result.is_a_suggestion)
True
If you think madura_api is a pain in the ass to type, do this
import madura_api as mapi
FAQs
An API to access online madura dictionary
We found that madura-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.