Giter Site home page Giter Site logo

davidhcefx / kartrider-track-name-translator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 290 KB

Tool for translating & formatting Chinese KartRider track names.

Home Page: https://kartrider-track-name-translate.herokuapp.com/

License: MIT License

HTML 31.23% JavaScript 68.77%
english kartrider kartriderrushplus map track translator

kartrider-track-name-translator's People

Contributors

davidhcefx avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar

kartrider-track-name-translator's Issues

feature: 自動錯字糾正

如果能自動錯字糾正感覺不錯
例如:

紫金 -> 中華主題紫禁城
修煉 -> 刀劍野外修練館

但是衍伸的問題就會變成,我們無法完全確定使用者原本想表達的意思。例如 中華壺,究竟是 中華胡同 還是 中華晴空萬里西湖 呢?

TrackName 跟 Mode 之間若超過一個空格就會壞掉

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

當我們搜尋到關鍵字的 exact match 時,就應該捨去 fuzzy match 比較合理。

例如:關鍵字 危機 指的比較可能是 黃金文明危機四伏 而非 黃金文明危險機關

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.