コード

こーど
noun
code; cord; chord
1. code
A system of words, symbols, or rules for communication or programming.
コード()
I write code.
I looked at the program code.
There's a problem with this code. I have to fix it.
2. cord, cable
An electrical wire or cable.
コードつなぐ
I connect the cord.
I plug the power cord into the outlet.
I don't have an extension cord, so the vacuum cleaner won't reach.
3. chord
A combination of musical notes played together.
コード()
I play chords.
I learned guitar chords.
The chords for this song are difficult, but with practice I'll be able to play them.

コード is a versatile loanword with three distinct meanings from different English words:

1. CODE (programming/secret):

  • ソースコード: source code
  • 暗号(あんごう)コード: secret code
  • QRコード: QR code
  • コードを()く: to write code

2. CORD (electrical):

  • 電源(でんげん)コード: power cord
  • 延長(えんちょう)コード: extension cord
  • コードレス: cordless

3. CHORD (music):

  • コード進行(しんこう): chord progression
  • コードを()く: to play chords

Context usually makes the meaning clear.