Change variable from another script - C#

I have two scripts. first script has a word variable

public string word="";

I want to to access it from another script, so i use this

GameObject wordGameObject=Selection.activeTransform.gameObject;
Word wordObject=wordGameObject.GetComponent<Word>();
Word.word = EditorGUILayout.TextField ("Text Field", Word.word);

but i get error An object reference is required to access non-static member `Word.word’

You need to use wordObject.word in your case. Word is the class type name, wordObject is the actual variable that holds a reference to an instance of that class.