title: How to judge which language a input belongs to in AppleScript?
body: <p>I want to add a item in Services on macOS such as:</p>
  
  <p>I pick a word on webpage, then search its explain on Wikipedia. </p>
  
  <p>If the word is english, i want to search "<a href="https://en.wikipedia.org/wiki/" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/</a>", if the word is chinese, i want to search "<a href="https://zh.wikipedia.org/wiki/" rel="nofollow noreferrer">https://zh.wikipedia.org/wiki/</a>". so firstly I need to judge the language of input. I want to how to do it in AppleScript. Thanks.</p>