davidhcefx / kartrider-track-name-translator Goto Github PK
View Code? Open in Web Editor NEWTool for translating & formatting Chinese KartRider track names.
Home Page: https://kartrider-track-name-translate.herokuapp.com/
License: MIT License
Tool for translating & formatting Chinese KartRider track names.
Home Page: https://kartrider-track-name-translate.herokuapp.com/
License: MIT License
如果能自動錯字糾正感覺不錯
例如:
紫金 -> 中華主題紫禁城
修煉 -> 刀劍野外修練館
但是衍伸的問題就會變成,我們無法完全確定使用者原本想表達的意思。例如 中華壺
,究竟是 中華胡同
還是 中華晴空萬里西湖
呢?
Input 的第一行是一個數字 (StartNum)
之後的每一行,都是一個中文名字 (TrackName) 配上一個英文簡寫 (Mode)
但是 TrackName 跟 Mode 之間只能有一個空格,如果放超過一個空格就會壞掉:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toUpperCase')
at run (script.js:83:23)
問題出在第 79 行只用單一空格來 split:
const [name, mode] = ln.split(' ');
當我們搜尋到關鍵字的 exact match 時,就應該捨去 fuzzy match 比較合理。
例如:關鍵字 危機
指的比較可能是 黃金文明危機四伏
而非 黃金文明危險機關
。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.