New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nlptoolkit-dictionary

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nlptoolkit-dictionary - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

4

dist/Dictionary/Dictionary.js

@@ -46,3 +46,3 @@ (function (factory) {

}
return -lo;
return -(lo + 1);
}

@@ -128,3 +128,3 @@ /**

else {
return -middle;
return -middle - 1;
}

@@ -131,0 +131,0 @@ }

@@ -174,3 +174,3 @@ (function (factory) {

word.addFlag(flag);
let insertIndex = this.binarySearch(word) - 1;
let insertIndex = -this.binarySearch(word) - 1;
if (insertIndex >= 0) {

@@ -177,0 +177,0 @@ this.words.splice(insertIndex, 0, word);

{
"name": "nlptoolkit-dictionary",
"version": "1.0.4",
"version": "1.0.5",
"description": "Turkish Dictionary",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,2 +0,2 @@

Turkish Dictionary [<img src="https://github.com/StarlangSoftware/Dictionary/blob/master/video1.jpg" width="5%">](https://youtu.be/10iAqbfsA2A)[<img src="https://github.com/StarlangSoftware/Dictionary/blob/master/video2.jpg" width="5%">](https://youtu.be/C-_TZDkFwzQ)
Turkish Dictionary
============

@@ -34,2 +34,7 @@

Video Lectures
============
[<img src="https://github.com/StarlangSoftware/Dictionary/blob/master/video1.jpg" width="50%">](https://youtu.be/10iAqbfsA2A)[<img src="https://github.com/StarlangSoftware/Dictionary/blob/master/video2.jpg" width="50%">](https://youtu.be/C-_TZDkFwzQ)
For Developers

@@ -36,0 +41,0 @@ ============

@@ -42,3 +42,3 @@ import {Word} from "./Word";

}
return -lo
return -(lo + 1)
}

@@ -128,5 +128,5 @@

} else {
return -middle;
return -middle - 1;
}
}
}

@@ -180,3 +180,3 @@ import {WordComparator} from "./WordComparator";

word.addFlag(flag);
let insertIndex = this.binarySearch(word) - 1;
let insertIndex = -this.binarySearch(word) - 1;
if (insertIndex >= 0) {

@@ -183,0 +183,0 @@ this.words.splice(insertIndex, 0, word);

@@ -53,2 +53,4 @@ "use strict";

it('testGetWordStartingWith', function () {
assert.strictEqual(0, lowerCaseDictionary.getWordStartingWith("a"));
assert.strictEqual(1, lowerCaseDictionary.getWordStartingWith("b"));
assert.strictEqual(20, lowerCaseDictionary.getWordStartingWith("q"));

@@ -55,0 +57,0 @@ assert.strictEqual(27, lowerCaseDictionary.getWordStartingWith("w"));

@@ -52,2 +52,4 @@ import {TxtDictionary} from "../dist/Dictionary/TxtDictionary";

it('testGetWordStartingWith', function() {
assert.strictEqual(0, lowerCaseDictionary.getWordStartingWith("a"));
assert.strictEqual(1, lowerCaseDictionary.getWordStartingWith("b"));
assert.strictEqual(20, lowerCaseDictionary.getWordStartingWith("q"));

@@ -54,0 +56,0 @@ assert.strictEqual(27, lowerCaseDictionary.getWordStartingWith("w"));

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc