v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Language words.txt"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 5: Line 5:
  
 
This file lists the various language items (ie words) in English and their token attributes.
 
This file lists the various language items (ie words) in English and their token attributes.
 +
 +
Note that this file doesn't include translations to the in game languages. It adds a word and defines the parts of speech for it. The parts of speech tokens indicate how an individual word can function as more than one part of speech when used in different circumstances.
 +
 +
Words tend to be grouped into categories called symbols. These are defined in [[language_SYM.txt]].
  
 
=== Example ===
 
=== Example ===
  
The section for the word CAVERN:
+
The section for the word CAVERN is below. The first line <code>[WORD:CAVERN]</code> is the key for the word and the value of that key follows. The key could remain as is, and the value definition <nowiki>[NOUN:cavern:caverns]</nowiki> modified to read ''<nowiki>[NOUN:grotto:grottoes]</nowiki>.'' This would replace in game English instances of "cavern" with the word "grotto" instead. The fantasy languages translations would remain as is.
  
 
<pre><nowiki>[WORD:CAVERN]
 
<pre><nowiki>[WORD:CAVERN]

Revision as of 23:06, 27 February 2023

File

Folder-orange.svg Dwarf Fortress

Folder.svg raw

Folder.svg objects

Text-x-generic.svg language_SYM.txt

Description

This file lists the various language items (ie words) in English and their token attributes.

Note that this file doesn't include translations to the in game languages. It adds a word and defines the parts of speech for it. The parts of speech tokens indicate how an individual word can function as more than one part of speech when used in different circumstances.

Words tend to be grouped into categories called symbols. These are defined in language_SYM.txt.

Example

The section for the word CAVERN is below. The first line [WORD:CAVERN] is the key for the word and the value of that key follows. The key could remain as is, and the value definition [NOUN:cavern:caverns] modified to read [NOUN:grotto:grottoes]. This would replace in game English instances of "cavern" with the word "grotto" instead. The fantasy languages translations would remain as is.

[WORD:CAVERN]
	[NOUN:cavern:caverns]
		[FRONT_COMPOUND_NOUN_SING]
		[REAR_COMPOUND_NOUN_SING]
		[THE_NOUN_SING]
		[REAR_COMPOUND_NOUN_PLUR]
		[OF_NOUN_PLUR]
	[ADJ:cavernous]
		[ADJ_DIST:2]

Symbols

See DF2014:Language_words.txt for outdated symbol listing.

See Also