TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Any service out there for titles/phrases/names/etc.

1 点作者 satyajit超过 16 年前
Writing a small helper class to suggest/auto-complete a text field with some commonly used names, titles, phrases etc. Helps to avoid misspellings, as well as not having to remember the entire title or what you have. For example, not many of you can write Arnold Sc....gger's name without misspelling - so in that case I would like to suggest. So I simply connected Google's auto-suggest to my textbox. But that's not a gr8 solution, as typing 'Arnold' gives me lot of useless junk such as "arnold schwarzenegger soundboard" and "arnold schwarzenegger movies" - because that's often searched upon. Now, Wiki is a good solution - they have got indexes too, and a great one, exactly the kind I am looking for. But they are alphabetically sorted, not by popularity. So even typing 'Arnold Sc' also doesn't get anywhere close to the answer.<p>Anyone has any other recommendation?

2 条评论

tallanvor超过 16 年前
You would have to create a dictionary where you can weight words (by frequency, most likely), and write a matcher that runs as a user types.
mooism2超过 16 年前
Seed a list from Wiki, then add weightings according to what your users type in?