spellcure 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
spellcure/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ from .corrector import SpellCure
2
+
3
+ __all__ = ["SpellCure"]
spellcure/corrector.py ADDED
@@ -0,0 +1,122 @@
1
+ """
2
+ spellcure.corrector
3
+ -------------------
4
+ Saheban Khan's original spelling correction engine — refactored into a class.
5
+ Retains ratio-based probability logic and recursive refinement system.
6
+ """
7
+ import nltk
8
+ from nltk.data import find
9
+
10
+ # Auto-download 'words' corpus if missing
11
+ try:
12
+ find("corpora/words")
13
+ except LookupError:
14
+ print("[INFO] Downloading NLTK 'words' corpus...")
15
+ nltk.download("words", quiet=True)
16
+
17
+ from nltk.corpus import words
18
+
19
+
20
+ class SpellCure:
21
+ def __init__(self, mode="small", custom_vocab=None):
22
+ """
23
+ Initialize the SpellCure engine.
24
+
25
+ Parameters
26
+ ----------
27
+ mode : str
28
+ "small" (default) for built-in word list, or "large" for nltk words corpus.
29
+ custom_vocab : list[str] or None
30
+ If provided, uses your own vocabulary list instead of built-in ones.
31
+ """
32
+
33
+ if custom_vocab:
34
+ self.lis = list(set(custom_vocab))
35
+ elif mode == "large":
36
+ print("[INFO] Using NLTK large vocabulary...")
37
+ self.lis = list(set(words.words()))
38
+ else:
39
+ # Saheban’s default mini vocab list
40
+ self.lis = list(
41
+ set(
42
+ [
43
+ "a", "about", "above", "above", "across","after""afterwards", "again", "against", "all", "almost", "alone", "along", "already", "also","although","always","am","among", "amongst", "amoungst", "amount", "an", "and", "another", "any","anyhow","anyone","anything","anyway", "anywhere", "are", "around", "as", "at", "back","be","became", "because","become","becomes", "becoming", "been", "before", "beforehand", "behind", "being", "below", "beside", "besides", "between", "beyond", "bill", "both", "bottom","but", "by","bull", "call", "can", "cannot", "cant", "co", "con", "could", "couldnt", "cry", "de", "describe", "detail", "do", "done", "down", "due", "during", "each", "eg", "eight", "either", "eleven","else", "elsewhere", "empty", "enough", "etc", "even", "ever", "every", "everyone", "everything", "everywhere", "except", "few", "fifteen", "fify", "fill", "find", "fire", "first", "five", "for", "former", "formerly", "forty", "found", "four", "from", "front", "full", "further", "get", "give", "go", "had", "has", "hasnt", "have", "he", "hence", "her", "here", "hereafter", "hereby", "herein", "hereupon","hello","hell", "hers", "him", "his", "how", "however", "hundred", "ie", "if", "in", "inc", "indeed", "interest", "into", "is", "it", "its", "itavl_wf", "keep","kill", "last", "latter", "latterly", "least", "less","loose", "ltd", "made", "many", "may", "me", "meanwhile", "might", "mill", "mine", "more", "moreover", "most", "mostly", "move", "much", "must", "my", "myavl_wf", "name", "namely", "neither", "never", "nevertheless", "next", "nine", "no", "nobody", "none", "noone", "nor", "not", "nothing", "now", "nowhere", "of", "off", "often", "on", "once", "only", "onto", "or", "other", "others", "otherwise", "our", "ours", "ouravl_wves", "out", "over", "own","part", "per", "perhaps","place","please", "put", "rather", "re", "same", "see", "seem", "seemed", "seeming", "seems", "serious", "several", "she", "should", "show", "side", "since", "sincere", "six", "sixty", "so", "some", "somehow", "someone", "something", "sometime", "sometimes", "somewhere", "still", "such", "system", "take", "ten", "than", "that", "the", "their", "them", "themavl_wves", "then", "thence", "there", "thereafter", "thereby", "therefore", "therein", "thereupon", "these", "they", "thick", "thin", "third", "this", "those", "though", "three", "through", "throughout", "thru", "thus", "to", "together", "too", "top", "toward", "towards", "twelve", "twenty", "two", "un", "under", "until", "up", "upon", "us", "very", "via", "was", "we", "well", "were", "what", "whatever", "when", "whence", "whenever", "where", "whereafter", "whereas", "whereby", "wherein", "whereupon", "wherever", "whether", "which", "while", "whither", "who", "whoever", "whole", "whom", "whose", "why", "will", "with", "within", "without", "would", "yet", "you", "your", "yours", "yourself", "shall", "the","hi","like","lie","one","two","three","moon","doing","good","think","looking","day","bought","bag","visiting","shop","I","i","today","friend","going","able", "absent", "accept", "action", "active", "actual", "advice", "affair", "afraid", "again", "age", "agree", "ahead", "aid", "aim", "air", "alert", "alive", "allow", "almost", "alone", "alongside", "already", "also", "alter", "always", "amazed", "ancient", "anger", "angle", "angry", "animal", "annual", "another", "answer", "anybody", "anyway", "apart", "appear", "apply", "approve", "area", "argue", "arise", "around", "arrange", "arrive", "article", "artist", "aside", "asked", "aspect", "assist", "assume", "assure", "attract", "audience", "author", "auto", "available", "average", "avoid", "aware", "awkward", "baby", "backed", "background", "badly", "bake", "balance", "ball", "bank", "bar", "base", "basic", "basis", "beauty", "become", "bed", "beforehand", "began", "begin", "being", "believe", "below", "belt", "bend", "beneath", "benefit", "besides", "best", "bet", "better", "between", "beyond", "bias", "big", "bill", "bind", "birth", "bit", "bite", "black", "blade", "blame", "blank", "blast", "blind", "block", "blood", "blow", "blue", "board", "boat", "body", "boil", "bold", "bomb", "bone", "book", "boot", "border", "born", "borrow", "boss", "both", "bother", "bottle", "bottom", "bound", "bow", "box", "boy", "brain", "branch", "brand", "brave", "bread", "break", "breath", "breathe", "brief", "bright", "bring", "broad", "broken", "brother", "brought", "brown", "brush", "build", "burn", "burst", "business", "busy", "but", "buy", "by", "cable", "cake", "call", "calm", "camera", "camp", "canal", "cap", "capable", "capital", "captain", "capture", "care", "careful", "cargo", "carpet", "carry", "case", "cast", "catch", "cause", "cell", "center", "central", "century", "certain", "chain", "chair", "challenge", "chance", "change", "chapter", "character", "charge", "chart", "chat", "check", "cheer", "chemical", "chest", "chief", "child", "children", "chill", "choice", "choose", "chronic", "church", "circle", "circuit", "circumstance", "city", "civil", "claim", "class", "clean", "clear", "climb", "clock", "close", "closer", "clothes", "cloud", "cluster", "coach", "coal", "coast", "coat", "code", "coffee", "cold", "collapse", "colleague", "collect", "college", "color", "column", "combine", "come", "comfort", "command", "comment", "commercial", "common", "community", "company", "compare", "compete", "complete", "complex", "compose", "concern", "conclude", "condition", "conduct", "confident", "confirm", "confuse", "connect", "consider", "consist", "constant", "construct", "consult", "consume", "contact", "contain", "content", "continue", "control", "converse", "convert", "convince", "cook", "cool", "cooperate", "cope", "copy", "core", "corner", "corporate", "correct", "cost", "cotton", "couch", "cough", "could", "council", "counsel", "count", "country", "couple", "course", "court", "cover", "cow", "crack", "craft", "cram", "crash", "crawl", "cream", "create", "credit", "crime", "crisis", "critical", "crop", "cross", "crow","crowd", "crown", "crucial", "cry", "culture", "cup", "current", "curve", "custom", "cut", "cycle", "dad", "danger", "dare", "dark", "date", "daughter", "daylight", "deal", "debate", "decade", "decide", "decision", "declare", "decline", "decorate", "dedicate", "deep", "default", "defeat", "defend", "define", "degree", "delay", "deliver", "demand", "democratic", "demonstrate", "deny", "department", "depend", "deploy", "deposit", "describe", "deserve", "design", "desire", "destroy", "detail", "determine", "develop", "device", "devote", "diagnose", "dictate", "die", "differ", "different", "difficult", "digest", "digital", "dignity", "dimension", "direct", "directory", "dirt", "disagree", "disappear", "disclose", "discuss", "disease", "dish", "dismiss", "display", "distance", "distinguish", "distribute", "district", "disturb", "diverse", "divide", "division", "dozen", "draft", "drag", "dramatic", "draw", "dream", "dress", "drink", "drive", "drop", "drought", "drug", "dry", "due", "dull", "dump", "during", "dust", "duty", "each", "eager", "ear", "early", "earn", "earth", "ease", "east", "easy", "eat", "economic", "edge", "edit", "educate", "effort", "egg", "eight", "either", "elder", "elect", "electric", "electronic", "element", "eliminate", "else", "elsewhere", "embark", "embody", "emerge", "emotion", "emphasize", "employ", "empty", "enable", "enclose", "encounter", "end", "endorse", "enemy", "energetic", "energy", "enforce", "engage", "engine", "enhance", "enjoy", "enlarge", "enough", "ensure", "enter", "entertain", "entire", "entry", "envelope", "environment", "episode", "equal", "equip", "equity", "era", "escape", "essay", "essence", "establish", "estimate", "ethics", "evaluate", "even", "event", "ever", "every", "evidence", "evil", "evolve", "examine", "example", "exceed", "excellent", "except", "exchange", "excite", "exclude", "executive", "exercise", "exhaust", "exhibit", "exist", "expand", "expect", "expense", "experience", "expert", "explain", "exploit", "explore", "export", "expose", "express", "extend", "extra", "extreme", "eye", "face", "fact", "factor", "factory", "faculty", "fade", "fail", "fair", "faith", "fall", "false", "fame", "family", "famous", "fan", "fantasy", "far", "farm", "fast", "fat", "father", "fault", "favor", "fear", "feature", "fed", "fee", "feed", "feel", "female", "fence", "few", "field", "figure", "file", "fill", "film", "final", "finance", "find", "fine", "finger", "finish", "fire", "firm", "first", "fish", "fit", "five", "fix", "flag", "flame", "flash", "flat", "flavor", "flesh", "flight", "float", "floor", "flow", "flower", "fly", "focus", "fold", "follow", "food", "foot", "football", "for", "force", "foreign", "forest", "forget", "forgive", "form", "formal", "format", "former", "formula", "forth", "fortune", "forward", "found", "four", "fox", "frame", "free", "freedom", "freeze", "French", "frequent", "fresh", "friend", "friendly", "friendship", "from", "front", "frost","frown", "fruit", "fuel", "full", "fun", "function", "fund", "funny", "furniture", "further", "future", "gain", "game", "gap", "garage", "garden", "gas", "gate", "gather", "gay", "gaze", "general", "generate", "gentle", "genuine", "geography", "get", "ghost", "giant", "gift", "girl", "give", "glad", "glass", "global", "glove", "glow", "go", "goal", "god", "gold", "golf", "good", "government", "governor", "grab", "grade", "grain", "grand", "grant", "graph", "grass", "grave", "great", "green", "groan", "ground", "group", "grow", "guarantee", "guess", "guest", "guide", "guilt", "gun", "guy", "habit", "hair", "half", "hall", "hand", "handle", "hang", "happen", "happy", "hard", "hat", "hate", "have", "he", "head", "health", "hear", "heart", "heat", "heavy", "help", "hence", "her", "here", "hero", "hides", "high", "highlight", "highway", "hill", "him", "hip", "hire", "history", "hit", "hold", "hole", "holiday", "home", "honest", "honey", "hood", "hook", "hope", "horizon", "horse", "hospital", "host", "hot", "hotel", "hour", "house", "how", "however", "huge", "human", "humble", "humor", "hundred", "hungry", "hunt", "hurry", "hurt", "husband", "hypothetical","is", "idea", "ideal", "identify", "ignore", "ill", "image", "imagine", "immediate", "imply", "import", "impose", "impossible", "impress", "improve", "in", "inch", "incident", "include", "income", "increase", "indeed", "independent", "indicate", "individual", "industry", "inevitable", "influence", "inform", "initial", "initiate", "injure", "injustice", "ink", "inner", "innocent", "input", "inquire", "insane", "inside", "insist", "inspect", "inspire", "install", "instead", "institution", "instruction", "instrument", "insult", "insurance", "intact", "intend", "intense", "interest", "interfere", "internal", "international", "interpret", "interrupt", "interview", "into", "introduce", "invent", "invest", "invite", "involve", "iron", "is", "island", "issue", "it", "item", "its", "jacket", "job", "join", "joint", "joke", "journal", "journey", "joy", "judge", "judgment", "juice", "jump", "junior", "jury", "just", "justice", "keen", "keep", "key", "kick", "kid", "kill", "kind", "king", "kiss", "kitchen", "knee", "knife", "knock", "know", "knowledge", "lab", "label", "labor", "lack", "lady", "lake", "lamp", "land", "language", "lap", "large", "last", "late", "laugh", "law", "lawyer", "lay", "layer", "lead", "leader", "leaf", "learn", "leave", "lecture", "left", "leg", "legal", "legislature", "length", "lend", "less", "lesson", "let", "letter", "level", "lie", "life", "lift", "light", "like", "likely", "limit", "line", "link", "lip", "liquid", "list", "listen", "literature", "little", "live", "load", "loan", "local", "locate", "lock", "log", "logic", "logical", "lonely", "long", "look", "loop", "lose", "loss", "lost", "lot", "loud", "love", "low", "lower", "luck","lucky", "lunch", "machine", "mad", "magazine", "magic", "maid", "mail", "main", "major", "make", "male", "mall", "man", "manage", "manner", "many", "map", "mark", "market", "marriage", "marry", "mask", "mass", "master", "match", "material", "math", "matter", "max", "maybe", "mayor", "meal", "mean", "measure", "meat", "media", "medical", "meet", "member", "memory", "mental", "menu", "mercy", "message", "metal", "method", "middle", "midnight", "milk", "mind", "mine", "minister", "minor", "minute", "miracle", "mirror", "miss", "mistake", "mix", "model", "mom", "moment", "money", "monitor", "month", "mood", "moon", "more", "morning", "mortgage", "most", "mother", "motion", "motor", "mount", "mountain", "mouse", "mouth", "move", "movie", "much", "mud", "music", "must", "mutual", "my", "mystery", "myth", "nail", "name", "nation", "native", "natural", "nature", "near", "neat", "necessary", "neck", "need", "negative", "neighbor", "neither", "nervous", "nest", "net", "network", "never", "new", "news", "next", "nice", "night", "nine", "no", "nobody", "nod", "noise", "none", "noon", "nor", "normal", "north", "nose", "not", "note", "nothing", "notice", "noun", "novel", "now", "number", "numerous", "nurse", "nut", "object", "obvious", "occur", "ocean", "odd", "offer", "office", "officer", "official", "often", "oil", "old", "olive", "on", "once", "one", "only", "open", "operate", "opinion", "opportunity", "oppose", "option", "or", "orange", "order", "ordinary", "organ", "organization", "orient", "original", "other", "others", "our", "out", "outcome", "outside", "over", "own", "owner", "pace", "pack", "page", "pain", "paint", "pair", "pal", "park", "part", "participant", "particular", "partner", "pass", "passage", "passenger", "passion", "past", "path", "patient", "pattern", "pause", "pay", "peace", "pen", "people", "pepper", "per", "perform", "perhaps", "period", "permanent", "permit", "person", "personal", "phone", "photo", "phrase", "physical", "piano", "pick", "picture", "piece", "pig", "pill", "pilot", "pine", "pink", "place", "plan", "plane", "plant", "plastic", "plate", "play", "player", "please", "pleasure", "plot", "plus", "pocket", "poem", "poet", "point", "police", "policy", "polite", "political", "pond", "pool", "pop", "popular", "population", "port", "position", "positive", "possess", "possible", "post", "pot", "potato", "potential", "pound", "power", "practical", "practice", "pray", "preach", "precise", "predict", "prefer", "prepare", "present", "president", "press", "pretty", "prevent", "price", "pride", "priest", "primary", "prime", "principle", "print", "prior", "priority", "prison", "private", "prize", "problem", "procedure", "process", "produce", "product", "profess", "professional", "professor", "profile", "profit", "program", "progress", "project", "promote", "prompt", "proof", "proper", "property", "prospect", "protect", "proud", "prove", "provide", "public", "publish", "pull", "pulse", "pump", "punish","pure", "purpose", "push", "put", "quality", "quarter", "question", "quiet", "quit", "quite", "quote", "race", "radio", "rail", "rain", "raise", "range", "rate", "rather", "raw", "reach", "read", "ready", "real", "realize", "reason", "recall", "receive", "recent", "recognize", "recommend", "record", "recover", "red", "reduce", "reflect", "reform", "refresh", "refuse", "regard", "region", "register", "regret", "regular", "relate", "relation", "release", "relief", "relieve", "rely", "remain", "remark", "remember", "remind", "remove", "rent", "repair", "repeat", "replace", "reply", "report", "represent", "request", "require", "rescue", "research", "resist", "resolve", "respect", "respond", "rest", "result", "retain", "return", "reveal", "review", "reward", "rhythm", "rice", "rich", "ride", "right", "ring", "rise", "risk", "river", "road", "rob", "rock", "role", "roll", "roof", "room", "root", "rosy", "round", "route", "routine", "row", "rub", "ruin", "rule", "run", "rush", "sad", "safe", "sail", "sale", "salt", "same", "sample", "sand", "satellite", "satisfy", "save", "say", "scale", "scan", "scene", "schedule", "scheme", "school", "science", "scope", "score", "search", "season", "seat", "second", "secret", "section", "see", "seek", "seem", "select", "self", "sell", "send", "senior", "sense", "series", "serious", "servant", "serve", "service", "session", "set", "settle", "seven", "several", "sew", "sex", "shadow", "shake", "shall", "shape", "share", "sharp", "shave", "she", "shed", "shell", "shift", "shine", "ship", "shirt", "shoe", "shoot", "shop", "short", "shot", "should", "shoulder", "shout", "show", "shut", "side", "sight", "sign", "signal", "silent", "silver", "similar", "simple", "since", "sing", "sister", "sit", "site", "situate", "six", "size", "sketch", "skill", "skin", "skirt", "sky", "slate", "sleep", "slide", "slip", "slow", "small", "smart", "smell", "smile", "smoke", "smooth", "snake", "society", "soft", "software", "soil", "soldier", "solid", "solution", "solve", "some", "someone", "something", "sometimes", "son", "song", "soon", "sort", "soul", "sound", "source", "south", "space", "speak", "special", "specify", "speed", "spell", "spend", "sphere", "spirit", "spite", "split", "sport", "spot", "spread", "spring", "square", "stage", "stair", "stake", "stand", "standard", "star", "start", "state", "statement", "station", "stay", "steal", "steel", "step", "stick", "still", "stitch", "stock", "stomach", "stone", "stop", "store", "storm", "story", "straight", "strange", "strategy", "stream", "street", "strength", "stress", "stretch", "strike", "string", "strip", "stroke", "strong", "structure", "struggle", "student", "study", "stuff", "style", "subject", "submit", "substance", "success", "such", "sudden", "suffer", "sugar", "suggest", "summer", "summit", "sun", "super", "supply", "support", "suppose", "sure", "surface", "surprise", "surround", "survey", "suspect", "sustain", "swear", "sweet","swim", "swing", "switch", "sympathetic", "system", "table", "tackle", "tail", "take", "talent", "talk", "tank", "tape", "target", "task", "taste", "tax", "tea", "teach", "team", "tell", "ten", "tenant", "tend", "tennis", "tent", "term", "test", "text", "than", "thank", "that", "the", "theme", "then", "there", "therefore", "these", "they", "thing", "think", "third", "this", "thought", "thousand", "thread", "three", "throat", "through", "throw", "thumb", "thus", "ticket", "tide", "tie", "tiger", "tight", "time", "tin", "tiny", "tip", "tire", "title", "to", "tobacco", "today", "toe", "together", "tomorrow", "tone", "tongue", "tonight", "tool", "tooth", "top", "topic", "total", "touch", "tough", "tour", "tower", "town", "track", "trade", "traffic", "trail", "train", "transfer", "transform", "translate", "transmit", "travel", "treat", "tree", "tremble", "trial", "tribe", "trick", "trip", "trouble", "truck", "true", "trust", "truth", "try", "tube", "tune", "turkey", "turn", "twelve", "twenty", "twice", "two", "type", "typical", "ugly", "uncle", "under", "understand", "undertake", "unhappy", "union", "unit", "unite", "university", "unknown", "unless", "until", "unusual", "up", "upon", "upper", "upset", "use", "used", "user", "usual", "vacant", "vague", "valiant", "value", "valve", "van", "variable", "variation", "various", "vast", "vegetable", "vehicle", "venture", "verbal", "verify", "very", "vessel", "veteran", "vex", "via", "vice", "victim", "victory", "view", "village", "violence", "violent", "violet", "virtual", "virtue", "visible", "vision", "visit", "visual", "vital", "vivid", "voice", "void", "volcanic", "volume", "volunteer", "vote", "vouch", "vowel", "wage", "walk", "wall", "wander", "want", "war", "warm", "warn", "wash", "waste", "watch", "water", "wave", "way", "we", "weak", "wealth", "weapon", "wear", "weather", "web", "week", "weekend", "weird", "welcome", "weld", "well", "west", "wet", "what", "wheel", "when", "where", "which", "while", "white", "who", "whole", "why", "wide", "wife", "wild", "will", "win", "wind", "window", "wine", "wing", "winner", "winter", "wire", "wise", "wish", "with", "within", "without", "witness", "woman", "wonder", "wood", "wooden", "word", "work", "worker", "world", "worship", "worst", "worth", "would", "wound", "wrap", "write", "wrong", "yard", "year", "yell", "yellow", "yes", "yesterday", "yet", "yield", "you", "young", "your", "youth", "zeal", "zero", "zone","account","twenty","rupee","magnet","your"
44
+ ]
45
+ )
46
+ )
47
+
48
+ print(f"[INFO] Vocabulary loaded with {len(self.lis)} words.")
49
+
50
+ # ========================
51
+ # INTERNAL HELPER METHODS
52
+ # ========================
53
+ def _tor(self, x):
54
+ len_in = len(x)
55
+ lez = list(x)
56
+ w_len = len(self.lis)
57
+ sol = []
58
+ pul = []
59
+ for it in range(w_len):
60
+ kup = list(self.lis[it])
61
+ for i in range(len_in):
62
+ if lez[i] in kup:
63
+ cal = kup.index(lez[i]) + 1
64
+ rc = i + 1
65
+ sol.append(rc / cal if rc < cal else cal / rc)
66
+ if sol:
67
+ pul.append(sum(sol) / len_in)
68
+ sol.clear()
69
+ else:
70
+ pul.append(0)
71
+ return pul, len_in, lez, w_len
72
+
73
+ def _mon(self, len_in, lez, w_len):
74
+ avl_w = []
75
+ for it in range(w_len):
76
+ sup = list(self.lis[it])
77
+ lol = 0
78
+ for i in range(len_in):
79
+ if lez[i] in sup:
80
+ sup.remove(lez[i])
81
+ lol += 1
82
+ avl_w.append(lol)
83
+ return avl_w
84
+
85
+ def _don(self, pul, len_in, avl_w):
86
+ tel = []
87
+ w_len = len(self.lis)
88
+ for l in range(w_len):
89
+ jen = len(self.lis[l])
90
+ my = pul[l] + 0.02
91
+ sk = (avl_w[l] / len_in) + 0.02
92
+ dx = (len_in / jen - 0.01) if len_in < jen else (jen / len_in - 0.02)
93
+ resl = (dx + sk + my) / 3
94
+ tel.append(resl)
95
+ return tel
96
+
97
+ def _race(self, tel, min_val=0.0):
98
+ result = []
99
+ for j, score in enumerate(tel):
100
+ if score > (0.95 - min_val):
101
+ result.append(self.lis[j])
102
+ if not result and min_val < 0.3:
103
+ return self._race(tel, min_val + 0.01)
104
+ return result or ["<no match>"]
105
+
106
+ # ========================
107
+ # PUBLIC METHOD
108
+ # ========================
109
+ def correct(self, text):
110
+ """
111
+ Correct a single word or full sentence.
112
+ Returns the best guesses for each token.
113
+ """
114
+ words_input = text.strip().split()
115
+ results = []
116
+ for w in words_input:
117
+ pul, len_in, lez, w_len = self._tor(w)
118
+ avl_w = self._mon(len_in, lez, w_len)
119
+ tel = self._don(pul, len_in, avl_w)
120
+ matches = self._race(tel)
121
+ results.append("/".join(matches))
122
+ return " ".join(results)
@@ -0,0 +1,10 @@
1
+ Metadata-Version: 2.4
2
+ Name: spellcure
3
+ Version: 1.0.0
4
+ Summary: SpellCure — correction for highly scrambled text (Saheban Khan)
5
+ Author-email: Saheban Khan <sahebankhan21@gmail.com>
6
+ License-Expression: MIT
7
+ Requires-Python: >=3.8
8
+ Description-Content-Type: text/markdown
9
+ Requires-Dist: nltk
10
+ Requires-Dist: textdistance
@@ -0,0 +1,6 @@
1
+ spellcure/__init__.py,sha256=QHTHjNreqZtyA9v5zFX30h4_bP7H_UvFltrq-JNUyqI,61
2
+ spellcure/corrector.py,sha256=uZDUdWJB33L9oDIHmIW2J23voYgDvFqWlXDRuwaHsGQ,23990
3
+ spellcure-1.0.0.dist-info/METADATA,sha256=1bfuNPX4FdSip-VIWdHEBHrwysuP2rU4P8ph62owrKU,326
4
+ spellcure-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
+ spellcure-1.0.0.dist-info/top_level.txt,sha256=cMAQkIvuJVOAHn159joyzcskXfcI1y-tNR8OIVqe20U,10
6
+ spellcure-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ spellcure