Thema Datum  Von Nutzer Rating
Antwort
19.03.2019 18:58:07 maomaq
NotSolved
19.03.2019 23:39:22 Gast85475
NotSolved
Rot Liste von Wörtern um ihre Synonyme erweitern
20.03.2019 10:00:16 maomaq
NotSolved
21.03.2019 01:17:31 Gast85475
NotSolved
21.03.2019 23:21:54 maomaq
NotSolved
22.03.2019 22:17:03 Gast85475
NotSolved
22.03.2019 22:39:51 Gast85475
NotSolved
22.03.2019 22:44:10 Gast85475
NotSolved

Ansicht des Beitrags:
Von:
maomaq
Datum:
20.03.2019 10:00:16
Views:
500
Rating: Antwort:
  Ja
Thema:
Liste von Wörtern um ihre Synonyme erweitern

Ohh Gott... tausend Dank!! Ich hatte das auch schon geändert, aber in "wd.German" statt "WdLanguageID.wdGerman" und dabei wurden bloß "noun" "verb" etc ausgegeben.

Warum braucht man den Part "WdLanguageID."? Aber auf jedenfall schonmal vielen vielen Dank!!


 

Eine Weitere Frage, nachfolgend nochmal der Code

Public Sub PartsOfSpeech()
 
  Dim mObjWord As Word.Application
  Dim mySynInfo As Word.SynonymInfo
  Dim myList As Variant
  Dim myPos As Variant
  Dim i As Integer
  Dim iMax As Integer
  Dim thisPos As String
  Dim oCell As Range
 
  Set mObjWord = CreateObject("Word.Application")
  
  iMax = 1
 
  For Each oCell In Selection
    oCell.Offset(0, 1).Resize(1, 99).ClearContents
    If oCell.Column = 1 And Not IsEmpty(oCell) Then
      Set mySynInfo = SynonymInfo(Word:=oCell.Value, LanguageID:=WdLanguageID.wdGerman)
      oCell.Offset(0, 1) = "'(" & CStr(mySynInfo.MeaningCount) & ")"
      If mySynInfo.MeaningCount <> 0 Then
        myList = mySynInfo.MeaningList
        myPos = mySynInfo.PartOfSpeechList
        If i > iMax Then iMax = i
        For i = 1 To UBound(myPos)
          Select Case myPos(i)
            Case wdAdjective
              thisPos = "adjective"
            Case wdNoun
              thisPos = "noun"
            Case wdAdverb
              thisPos = "adverb"
            Case wdVerb
              thisPos = "verb"
            Case wdConjunction
              thisPos = "conjunction"
            Case wdIdiom
              thisPos = "idiom"
            Case wdInterjection
              thisPos = "interjection"
            Case wdPreposition
              thisPos = "preposition"
            Case wdPronoun
              thisPos = "pronoun"
             Case Else
              thisPos = "other"
          End Select
          oCell.Offset(0, i + 1) = myList(i) & " (" & thisPos & ")"
        Next i
      Else
        oCell.Offset(0, 2) = "No meanings found"
      End If
    End If
  Next oCell
  
  For i = 3 To iMax
    Columns(i).EntireColumn.AutoFit
  Next i
 
End Sub

wenn ich da jetztfolgenden Teil rausnehme


      If mySynInfo.MeaningCount <> 0 Then
        myList = mySynInfo.MeaningList
        myPos = mySynInfo.PartOfSpeechList
        If i > iMax Then iMax = i
        For i = 1 To UBound(myPos)
          Select Case myPos(i)
            Case wdAdjective
              thisPos = "adjective"
            Case wdNoun
              thisPos = "noun"
            Case wdAdverb
              thisPos = "adverb"
            Case wdVerb
              thisPos = "verb"
            Case wdConjunction
              thisPos = "conjunction"
            Case wdIdiom
              thisPos = "idiom"
            Case wdInterjection
              thisPos = "interjection"
            Case wdPreposition
              thisPos = "preposition"
            Case wdPronoun
              thisPos = "pronoun"
             Case Else
              thisPos = "other"
          End Select
          oCell.Offset(0, i + 1) = myList(i) & " (" & thisPos & ")"
        Next i

Erledigt sich dann damit der POS teil mit der Zuteilung zu "noun" "verb" etc. oder habe ich noch was übersehen?


 

Und noch eine Frage, jetzt gibt der Code ja Meanings wieder, also in welchem Sinne die Wörter gebraucht werden können.

Wände (3) Auswinden (verb) Rollen (verb) Begrenzungen (noun)

Gibt es eine Möglichkeit sich nicht die Bedeutung ausgeben zu lassen, sondern Wortalternativen?

Wände Begrenzungen Abgründe Mauern

Also die Wörter, die unter den Bedeutungen aufgeführt sind?

 

Vielen Dank im Vorraus!


Ihre Antwort
  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen
Thema: Name: Email:



  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen

Thema Datum  Von Nutzer Rating
Antwort
19.03.2019 18:58:07 maomaq
NotSolved
19.03.2019 23:39:22 Gast85475
NotSolved
Rot Liste von Wörtern um ihre Synonyme erweitern
20.03.2019 10:00:16 maomaq
NotSolved
21.03.2019 01:17:31 Gast85475
NotSolved
21.03.2019 23:21:54 maomaq
NotSolved
22.03.2019 22:17:03 Gast85475
NotSolved
22.03.2019 22:39:51 Gast85475
NotSolved
22.03.2019 22:44:10 Gast85475
NotSolved