sozlukjs
Version:
An API library for Turkish Dictionary websites.
14 lines (12 loc) • 529 B
HTML
<html>
<body>
<script src="../../bundle.js"></script>
<script>
const sozluk = require("sozlukjs"); // You must import sozluk.js
sozluk.TurengDictionary.getTermData("dictionary")
.then(data => console.log(data)); // Fetches and console.logs the data about the term "dictionary".
sozluk.TurengDictionary.getTermSuggestions("dictionar")
.then(data => console.log(data)); // Fetches and console.logs the term suggestions for "dictionar".
</script>
</body>
</html>